[mercury-users] Circular lists

Fergus Henderson fjh at cs.mu.oz.au
Fri Nov 28 13:04:33 AEDT 1997


On Fri, Nov 28, 1997 at 11:48:01AM +1100, Peter Schachte wrote:
> would it be possible for Mercury to declare non-di arguments passed to C
> code `const' in the code it generates?

Yes, it would be possible, and what's more it would be a very good idea.

This would only apply to non-atomic types such as strings
and user-defined types.  Atomic types such as int and float are always
copied, so there is no danger of the C interface violating uniqueness
for such types.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>   WWW: <http://www.cs.mu.oz.au/~fjh>  
Note: due to some buggy software and a (probably accidental)
denial-of-service attack, any mail sent to me between
	Tue Nov 25 20:00:00 UTC (6am Wed, local time)
and	Wed Nov 26 06:00:00 UTC (4pm, local time)
may have gone into the bit-bucket.  Please re-send it.



More information about the users mailing list