[mercury-users] maybe(T)
Ralph Becket
rafe at cs.mu.OZ.AU
Mon Oct 21 11:12:26 AEST 2002
Michael Day, Monday, 21 October 2002:
>
> > Is this an issue you have to deal with or just a point of interest? -
>
> I'm not depending on being able to pass a maybe(T) to C code (presumably
> where T is some foreign_type) and having it interoperate nicely. Although
> that would be nice to be able to do, and simplify some code I have
> written. My main concern was that using maybe(T) wouldn't introduce
> unnecessary extra pointer manipulation; if it has no space/time overhead
> then no problem :)
Remember that for the C back ends you can use `pragma export' to pass
functions that act as surrogate constructors and destructors.
- Ralph
--------------------------------------------------------------------------
mercury-users mailing list
post: mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the users
mailing list