[m-dev.] for discussion: proposed additions to FFI

Ralph Becket rafe at csse.unimelb.edu.au
Tue Jun 24 11:50:29 AEST 2008

Julien Fischer, Monday, 23 June 2008:
> This proposal extends the FFI with three new pragmas that allow for the
> construction, deconstruction and testing of individual discriminated union
> data constructors in foreign language code.

I think this is a reasonable idea, although I wonder whether in
practice you're almost always going to want all three operations
(cons/decons/test), which might mean having a single pragma to generate
all three would be better.
mercury-developers mailing list
Post messages to:       mercury-developers at csse.unimelb.edu.au
Administrative Queries: owner-mercury-developers at csse.unimelb.edu.au
Subscriptions:          mercury-developers-request at csse.unimelb.edu.au

More information about the developers mailing list