Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* Objective Caml's Unix libraries
@ 1997-03-11 23:05 Pawel Wojciechowski
  1997-03-12  9:41 ` Xavier Leroy
  0 siblings, 1 reply; 4+ messages in thread
From: Pawel Wojciechowski @ 1997-03-11 23:05 UTC (permalink / raw)
  To: caml-list, Xavier.Leroy; +Cc: Pawel.Wojciechowski

It seems to me that in the interface file unix.mli (from the directory
otherlibs/unix of the Objective Caml release 1.03), one line should be
amended. Instead of 

(*** Basic file input/output *)

type file_descr

there should be:

(*** Basic file input/output *)

type file_descr = int 

This allowed me to avoid some problems when using file descriptors 
(I recently signalled my problem on the mailing list).

File descriptors are integers indeed. On the other hand, there is 
a correct definition of this type (ie as above) in the main file unix.ml,
so everything should be ok (or I am wrong?). Unfortunately without that 
small amendment in the library files, I couldn't compile my program
without an error: "This expression has type int but is here used with 
type Unix.file_descr"

cheers,

Pawel







^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1997-03-13 13:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-03-11 23:05 Objective Caml's Unix libraries Pawel Wojciechowski
1997-03-12  9:41 ` Xavier Leroy
1997-03-12 19:50   ` Bruno.Verlyck
1997-03-13  9:52     ` Alexandre Frey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox