[mercury-users] passing user-defined types between Mercury and C

Terrence Brannon princepawn at earthlink.net
Wed Jan 7 16:02:13 AEST 1970


Says the manual:

 Mercury types are converted to C types according to the rules in
 section Passing data to and from C.

I looked at that section, but it didn't say or give examples on how to
pass and return user-defined datatypes.

Furthermore, samples/c_interface in the Mercury distribution only used
normal Mercury types such as lists, ints, etc.

So, I would appreciate some input (and possibly a contribution to the
samples directory) on this topic.

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