caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Robert Roessler <roessler@rftp.com>
To: Caml-list <caml-list@inria.fr>
Subject: Toplevel usage of stdout and stderr
Date: Wed, 06 Apr 2005 02:16:16 -0700	[thread overview]
Message-ID: <4253A8E0.8090802@rftp.com> (raw)

I am close to finishing my LablGTK-based syntax-colored GUI for the 
toplevel... and I have noticed [the Windows version of] the ocaml 
toplevel seems to use both stdout and stderr for warnings and errors.

Chapter 9 of the Objective Caml manual clearly states "results are 
printed on standard output, errors on standard error" and further that 
the Windows ocaml.exe "works exactly as under Unix".

I would like to know if the apparent mixing of the two channels is 
intended, or if it is a bug (possibly just with the Windows version), 
and if there is some rationale for when stdout is used versus stderr.

This last would be of help to me, as I am trying to do "smart" 
filtering (and interpreting) of the toplevel output - and not having 
any model for what is going to show up where (other than knowing that 
the "inferred type and result value, if any" will go to stdout, as 
will the "# " prompt) makes this a little more difficult. :)

Robert Roessler
roessler@rftp.com
http://www.rftp.com


             reply	other threads:[~2005-04-06  9:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-06  9:16 Robert Roessler [this message]
2005-04-06 10:46 ` [Caml-list] " Jacques Garrigue
2005-04-07  3:40   ` Robert Roessler

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=4253A8E0.8090802@rftp.com \
    --to=roessler@rftp.com \
    --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;
as well as URLs for NNTP newsgroup(s).