[mercury-users] Working with exported types

Julien Fischer juliensf at csse.unimelb.edu.au
Thu Jul 27 18:11:40 AEST 2006


On Thu, 27 Jul 2006, Peter Wang wrote:

> On 2006-07-27, Julien Fischer <juliensf at csse.unimelb.edu.au> wrote:
>> An alternative here is to allow types with the foreign_enum pragma to
>> automatically construct a pair of translation functions that map between the
>> Mercury representation and the foreign representation.  For types with these
>> pragmas the compiler would insert calls to the translation functions at the
>> foreign code boundary.   (Basically doing what we do in the OpenGL binding
>> now except that it would all be automatically generated.)
>
> That would be *awesome*.

Awesome?  Useful ... certainly :-)  I think both types of foreign_enum
are potentially worth supporting.  The one above would be overkill in a 
lot of situations.

Julien.
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list