[mercury-users] passing self defined types from C to mercury
Fergus Henderson
fjh at cs.mu.OZ.AU
Wed Mar 26 01:44:27 AEDT 2003
On 25-Mar-2003, Pieter Laeremans <pieter.laeremans at student.kuleuven.ac.be> wrote:
> Something isn't clear to me about passing a self defined type from a
> mercury predicate implemented in C to Mercury itself.
...
> Is there some way I can acces the type constructor of
> self defined types from within the C-code or do I have to write helper
> predicates to do that ?
The latter -- you need to write helper predicates (or functions) in Mercury
and export them to C using `pragma export'.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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