From: Bruno.Verlyck@inria.fr
To: rich@lithinos.com
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Setting the EOL character....
Date: Fri, 13 Sep 2002 17:33:58 +0200 [thread overview]
Message-ID: <200209131533.g8DFXwK30934@waco.inria.fr> (raw)
In-Reply-To: <000401c25ace$6896c7b0$0a00a8c0@stone> (rich@lithinos.com)
From: "Richard Lyman" <rich@lithinos.com>
Date: Thu, 12 Sep 2002 20:36:45 -0600
... so then - there's no OCaml concept of a global EOL variable, or
method that deals with reading in from a stream until the EOL??
I was hoping more for something along the lines of -
myStream = Unix.accepted_socket_stream
while(true){
a_line = myStream.read_until("\000")
deal_with_line(a_line)
}
FWIW, Cash supports reading a line terminated by any char from a set
of chars. If that's your only need, Cash may be overkill, except if
you have a performance bottleneck here: its read_line should be at
least as fast as Pervasives.read_line. Anyway,
http://pauillac.inria.fr/cash/
Bruno.
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2002-09-13 15:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-13 2:24 Arturo Borquez
2002-09-13 2:36 ` Richard Lyman
2002-09-13 9:10 ` Alessandro Baretta
2002-09-13 15:33 ` Bruno.Verlyck [this message]
2002-09-13 15:52 ` Matt Boyd
-- strict thread matches above, loose matches on Subject: below --
2002-09-13 0:07 Richard Lyman
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=200209131533.g8DFXwK30934@waco.inria.fr \
--to=bruno.verlyck@inria.fr \
--cc=caml-list@inria.fr \
--cc=rich@lithinos.com \
/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