[mercury-users] io.m, directory listing

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Oct 7 11:59:25 AEST 1999


On 06-Oct-1999, Tomas By <tomas at research.nj.nec.com> wrote:
> Fergus Henderson writes:
> > So I think the `dir' module would be a much better place.
> 
> OK, if you say so. ;)
> 
> I note there are some other things like `io__remove_file' that
> should probably move as well then?

Well, the basic idea is that Mercury's `io' module, eventually to become
`std.io', should provide roughly the same kind of services as C's <stdio.h>.
<stdio.h> does provide a `remove()' function for removing files.

Anything which provides services that require additional operating system
support above and beyond what is provided by ANSI/ISO C is likely to be less
portable, and so it's probably better to put such services in a different
module, so that it's easier to avoid accidental dependencies on such services.

Does that seem like a reasonable basis for classification?

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