From: Nicolas C. <war...@fr...> - 2005-02-28 06:49:04
|
> 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. Regards, Nicolas Cannasse |