[mercury-users] Modules in a Library

Ralph Becket rafe at cs.mu.OZ.AU
Fri Dec 27 11:16:22 AEDT 2002


Noel  Pinto, Thursday, 26 December 2002:
> 
> I would like to know what is meant by related and unrelated 
> modules??

You've given us what looks like a perfectly plain English sentence; if
its meaning is not plain from context (which I find hard to believe)
then you should also provide the context so we stand a chance of being
able to help.

> In the examples provided, include_module and import_module are 
> used. They perform almost the same as including other modules from 
> different files as sub-modules, except that, import_module helps 
> retain the value of variable across child modules.

What on Earth does "helps retain the value of variable across child
modules" mean?

`:- import_module foo' makes the names defined in module foo visible in
the importing module.

`:- include_module foo' declares module foo to be a (separate)
sub-module of the module making the declaration.  It does not imply that
foo is imported, however.

- Ralph

--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list