[mercury-users] map__foldl2
Fergus Henderson
fjh at cs.mu.OZ.AU
Tue Dec 14 12:49:59 AEDT 1999
On 14-Dec-1999, Warwick Harvey <wharvey at cs.monash.edu.au> wrote:
> I also thought this looked a bit strange:
>
> > :- inst inst1 = bound(ground-unique ; ground-ground).
>
> I don't think this means what you intend it to mean.
In fact our intent is code like that should be illegal.
In the arguments to a bound/1 inst, you should not specify
the same functor name (in this case '-'/2) twice.
Unfortunately the compiler does not yet reject code like that.
Instead it goes ahead and generates code that almost certainly
does not do what you intend.
--
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.
--------------------------------------------------------------------------
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