[m-dev.] module system discussion

Simon Taylor stayl at cs.mu.OZ.AU
Sat Dec 15 02:06:19 AEDT 2001


On 13-Dec-2001, Peter Ross <peter.ross at miscrit.be> wrote:
> I think the transparent_module name is misleading, and to use the following
> name would be better:
> 
> :- namespace ns.
> :- end_namespace ns.

I have no objection to this. I'm not sure whether it would be worth
adding an `:- import_namespace' declaration -- it would seem a bit
strange to import a `namespace' using an `:- import_*module*' declaration.
But that's a minor detail.
 
> we should also restrict the use of the following declaration to only appear
> inside one module, ie you cannot have separate sub-modules.  This is a good
> idea because we are saying that the items are logically related, so they
> should have to be in the same source file.

I agree.

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