[m-dev.] Language interface improvements
Fergus Henderson
fjh at cs.mu.oz.au
Wed Nov 19 19:09:29 AEDT 1997
Peter Schachte, you wrote:
>
> The most convenient way to do this would be to have Mercury treat C structs
> as Mercury terms.
FWIW, Visual Prolog has a separate keyword `struct' used for this purpose.
Data types in VP can be (amoung other things) discriminated unions or structs.
If a data type is a struct, then it can have only one functor, but
it is represented in the same way as the corresponding C struct.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3 | -- the last words of T. S. Garp.
More information about the developers
mailing list