[m-dev.] io__write and arrays

Fergus Henderson fjh at cs.mu.oz.au
Tue Apr 8 19:24:19 AEST 1997


David Glen JEFFERY, you wrote:
> 
> At the moment, it would just print out the pointer that Mercury is hanging on
> to. This is because c_pointer is (abstractly) defined as
> 
>     :- type c_pointer == int.
> 
> in mercury_builtin.m.

Incidentally, that definition is a hack which can cause non-logical
behaviour.  It might be better to replace it with a definition that
aborts if you try to compare two c_pointers for equality.

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