From: Bardur A. <lis...@sc...> - 2005-02-28 07:03:21
|
On Mon, Feb 28, 2005 at 07:51:29AM +0100, Nicolas Cannasse wrote: > > Hi all, > > I was just wondering if anyone would mind me adding a couple of functions > > with signatures > > val input_file_descr : Unix.file_descr -> IO.input; > > val output_file_descr : Unix.file_descr -> unit IO.output; > > to the IO module? The idea is to use > > Unix.read > > Unix.single_write > > Unix.close > > to read/write directly to/from the file descriptor. There shouldn't > > really be any platform-specific issues since these functions of the Unix > > module are supported on all platforms. > > Any objections? > Yes. > It creates a dependency on Unix module, which force the user using IO to > link with unix.cma / cmxa. > I would prefer theses to go into an ExtUnix module. Ok, no problem. I'll post an ExtUnix module for review in a little while. :) Cheers, -- Bardur Arantsson <ba...@im...> <ba...@sc...> - Me, me, me... and me! Agent Smith | The Matrix: Reloaded |