[m-rev.] for review: data passing convention documentation

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Dec 6 23:55:59 AEDT 2001


On 06-Dec-2001, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> For the high level data representation,
> Mercury variables whose type is a Mercury discriminated union type
> will be passed as a CLR type whose type name is determined from
> the Mercury type name (ignoring any type parameters) followed by
> an underscore and then the type arity, expressed as a decimal integer.
> Mercury module qualifiers are converted to CLR namespace qualifiers.
> For example the Mercury type `foo__bar__baz/1' will be passed
> as the CLR type `foo.bar.baz_1'.

I forgot to mention that names in the Mercury standard library
are prefixed with a `mercury.' namespace qualifier.

Also Mercury array types get mapped to CLR array types
(this is also true for the low level data representation).

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list