[m-rev.] Fix for inst matching bug

Zoltan Somogyi zs at cs.mu.OZ.AU
Mon Jun 20 16:53:04 AEST 2005


On 20-Jun-2005, Ralph Becket <rafe at cs.mu.OZ.AU> wrote:
> +cons_ids_match(ConsIdA, ConsIdB) :-
> +	(
> +		ConsIdA = cons(SymNameA, ArityA),
> +		ConsIdB = cons(SymNameB, ArityB)
> +	->
> +		ArityA = ArityB,
> +		(
> +			SymNameA = unqualified(Name),
> +			SymNameB = unqualified(Name)
> +		;
> +			SymNameA = unqualified(Name),
> +			SymNameB = qualified(_, Name)
> +		;
> +			SymNameA = qualified(_, Name),
> +			SymNameB = unqualified(Name)
> +		;
> +			SymNameA = qualified(_, Name),
> +			SymNameB = qualified(_, Name)

If both consids are module qualified, you SHOULD insist on the module names
being the same. Otherwise the diff is fine.

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