Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Richard Jones <rich@annexia.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Line buffering
Date: Tue, 7 Dec 2004 18:17:12 +0000	[thread overview]
Message-ID: <20041207181711.GA21906@annexia.org> (raw)
In-Reply-To: <200412071810.iB7IA0Ec001558@waco.inria.fr>

[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]

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

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-12-07 18:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-07 13:57 Richard Jones
2004-12-07 18:10 ` [Caml-list] " Bruno.Verlyck
2004-12-07 18:17   ` Richard Jones [this message]
2004-12-07 18:38     ` Nicolas Cannasse
2004-12-08 16:15     ` Xavier Leroy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041207181711.GA21906@annexia.org \
    --to=rich@annexia.org \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox