Re: Objective Caml's Unix libraries

From: Alexandre Frey (frey@paris.ensmp.fr)
Date: Thu Mar 13 1997 - 10:52:00 MET


Message-Id: <m0w57Bp-0009bVC@toxic.ensmp.fr>
Date: Thu, 13 Mar 97 10:52 MET
From: Alexandre Frey <frey@paris.ensmp.fr>
To: Bruno.Verlyck@inria.fr
Subject: Re: Objective Caml's Unix libraries

Bruno,

> In english: Xavier's arguments are very strong. But within them (and
> the Unix library), I can't write a /bin/sh clone, because of >&3
> (here, and for Pawel.Wojciechowski, it would be enough to add a fun
> fileno : filedesc -> int, like the stdio macro) and <&3 -- but I
> thought about it for only 5 min.
As a hack, you can always write this:
let fileno (fd: file_descr): int = (Obj.magic fd)

But of course, you loose the safety of the abstract `file_descr' type.

--
Alexandre.



This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:09 MET