[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2004-12-07 (18:17) |
From: | Richard Jones <rich@a...> |
Subject: | Re: [Caml-list] Line buffering |
On Tue, Dec 07, 2004 at 07:10:00PM +0100, Bruno.Verlyck@inria.fr wrote: > Date: Tue, 7 Dec 2004 13:57:45 +0000 > From: Richard Jones <rich@annexia.org> > > Is there a way to set line buffering, particularly of stdout? > Short answer: no. > > The OCaml I/O system doesn't use C's FILE *. It's (much) simpler, > efficient, and just not done with line buffering as a goal. I looked > at it (io.c) while implementing Cash (line buffering is in the > original specification), and adding this would have made a too big > patch. I gave up. I noticed before that OCaml seems to implement its own I/O buffering system, instead of using FILE* (or sfio, I guess). Is there a reason for that? Thanks for the info anyway. It's somewhat annoying that stdout can't be line buffered. Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ >>> http://www.team-notepad.com/ - collaboration tools for teams <<< Merjis Ltd. http://www.merjis.com/ - improving website return on investment Learn Objective CAML - http://www.merjis.com/developers