From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 0F970BB81 for ; Tue, 7 Dec 2004 19:17:13 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id iB7IHChs018892 for ; Tue, 7 Dec 2004 19:17:12 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA06411 for ; Tue, 7 Dec 2004 19:17:12 +0100 (MET) Received: from annexia.force9.co.uk (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iB7IHBE7007092 for ; Tue, 7 Dec 2004 19:17:12 +0100 Received: from rich by annexia.force9.co.uk with local (Exim 3.36 #1 (Debian)) id 1Cbjtg-0005mv-00 for ; Tue, 07 Dec 2004 18:17:12 +0000 Date: Tue, 7 Dec 2004 18:17:12 +0000 Cc: caml-list@inria.fr Subject: Re: [Caml-list] Line buffering Message-ID: <20041207181711.GA21906@annexia.org> References: <20041207135745.GA31131@annexia.org> <200412071810.iB7IA0Ec001558@waco.inria.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k+w/mQv8wyuph6w0" Content-Disposition: inline In-Reply-To: <200412071810.iB7IA0Ec001558@waco.inria.fr> User-Agent: Mutt/1.5.6+20040722i From: Richard Jones X-Miltered: at nez-perce with ID 41B5F3A8.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 41B5F3A7.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 buffering:01 wrote:01 buffering:01 stdout:01 ocaml:01 ocaml:01 stdout:01 buffered:01 short:01 simpler:01 caml:02 guess:02 objective:02 seems:03 X-Attachments: type="application/pgp-signature" name="signature.asc" X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 >=20 > Is there a way to set line buffering, particularly of stdout? > Short answer: no. >=20 > 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. --=20 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 --k+w/mQv8wyuph6w0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBtfOn4le1M6q9pzoRAvy+AKCUnAfsjp3d9wUoHQhrdhE74cX/oACffw86 6bbecTeqc6TmHO+lPbAXkrA= =pPEO -----END PGP SIGNATURE----- --k+w/mQv8wyuph6w0--