[m-dev.] io streams

Fergus Henderson fjh at cs.mu.OZ.AU
Fri Dec 24 09:05:30 AEDT 1999


On 23-Dec-1999, Michael Day <mcda at cat.cs.mu.OZ.AU> wrote:
> 
> > When we put everything in the `std' module, we don't need to add `std'
> > prefixes to all the declarations in the standard library.  That would
> > be a significant increase in verbosity for very little increase in
> > clarity.  After all, the standard library's interface doesn't depend
> > on any other library, so if we were to add such prefixes then _every_ symbol
> > in the interface of the standard library would need a `std' prefix.
> 
> Do we need to make all the module files begin with std.* ?

No, even the file names can stay unchanged.
For a module such as `foo__bar__baz', the compiler searches
in `foo.bar.baz.m', `bar.baz.m', and then `baz.m'.

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