[mercury-users] Working with exported types

Peter Wang wangp at students.csse.unimelb.edu.au
Thu Jul 27 18:01:07 AEST 2006


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*.

Peter

--------------------------------------------------------------------------
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