[m-rev.] for review: import instance declarations transitively

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Jul 23 22:39:23 AEST 2002


On 23-Jul-2002, Simon Taylor <stayl at cs.mu.OZ.AU> wrote:
> 
> compiler/modules.m:
> 	Put instance declarations in the `.int2' files to avoid
> 	producing `superclass constraints not satisfied' errors
> 	for instance declarations for subclasses defined in the
> 	interface of importing modules.
> 
> 	Without this change, all modules importing the module definining
> 	the instance for the subclass must also import the module
> 	defining the instance for the superclass.

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