Version française
Home     About     Download     Resources     Contact us    
Browse thread
Objective Caml's Unix libraries
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alexandre Frey <frey@p...>
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.