[m-rev.] for review: make the HLDS of unify/compare procs more type correct

Fergus Henderson fjh at cs.mu.OZ.AU
Fri Jan 4 15:16:04 AEDT 2002


On 31-Dec-2001, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> compiler/unify_proc.m:
> 	Make the headvars of unification and comparison predicates for
> 	equivalence types the right (unexpanded) type, and cast them to the
> 	expanded type before calling the unification/comparison predicate
> 	on the cast values. This should make the HLDS "more" type correct,
> 	as the expansion of the equivalence is now explicit.
> 
> 	Also introduce explicit casts into compare pred for enums (their unify
> 	preds don't need them).

That looks fine.

-- 
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-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list