[m-dev.] diff: remove support for cuts

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Mar 28 19:21:04 AEST 2000


On 28-Mar-2000, Peter Schachte <schachte at cs.mu.OZ.AU> wrote:
> > It would be nice if we had something like Ada's `renames',
> > so that the compiler could detect that the two different occurrences
> > of `!' were both the same, and thus avoid the ambiguity.
> 
> For those of us who don't know Ada, what does `renames' do?

Well, with it you can declare in a module's interface
(in a package's specification, to use Ada terminology)
that a particular constant, procedure, function or
type is just a renaming of some other type.

Because it is part of the interface, overload resolution
can take this information into account.

> Does this let a module export things it imports?

Yes.  Of course, doing that in Mercury as it stands is not particularly
difficult.

-- 
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-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list