[mercury-users] discriminated unions in c_code
Michael Day
mikeday at corplink.com.au
Thu Nov 30 13:03:59 AEDT 2000
> You could also export functions/predicates that do this, and call them
> from C (make their inputs simple types such as strings or ints).
>
> Otherwise you have to start to concern yourself with how the compiler
> will choose representations for the type.
Oh right. Sounds like exporting would be a nice solution. This means I
have to say will_call_mercury for the c_code predicates which call the
exported Mercury predicates, I assume.
Michael
--------------------------------------------------------------------------
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