[m-rev.] for review: add lang spec to pragma import
Fergus Henderson
fjh at cs.mu.OZ.AU
Fri Nov 23 04:27:19 AEDT 2001
On 22-Nov-2001, Peter Ross <peter.ross at miscrit.be> wrote:
> Fergus wrote:
> > For the IL and Java backends, the argument types should be determined
> > from the Mercury type declaration. You shouldn't need to give the types
> > again in the `pragma import' declaration.
>
> :- pred load(object::in, object::out) is det.
>
> has two possible interpretations in C#
>
> void load(ref object);
>
> and
>
> void load(object, out object);
How is that different to the C interface?
--
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