[m-rev.] splitting io.m
Paul Bone
paul at bone.id.au
Mon Aug 17 17:02:55 AEST 2015
On Mon, Aug 17, 2015 at 04:43:55PM +1000, Peter Wang wrote:
> Hi,
>
> Would there be any opposition to splitting io.m into multiple modules,
> while maintaining the interface? Most of the predicates have the
> exported Mercury predicate wrapping private foreign_procs. I'm thinking
> the foreign_procs can be moved into submodules. The submodules might be
I've also considered splitting up IO.
I started with moving file and directory handling stuff into dir.m. There
is definitely some scope overlap between io.m and dir.m both doing filesystem
things.
> io.error
> io.read
> io.write
> io.seek
> io.file_type
> io.rename
> io.file_time
> io.environ
> io.system
> io.make_temp
> ...
This is more finer-grained than I would have chosen. Also I was going to
move all things, not just the foreign code, into the other
modules/submodules.
This isn't an objection and I don't think it's that strong of a concern.
Cheers.
--
Paul Bone
More information about the reviews
mailing list