caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Pervasives.input_line
@ 2002-04-27 16:17 Alessandro Baretta
  2002-05-02  7:06 ` Florian Hars
  0 siblings, 1 reply; 2+ messages in thread
From: Alessandro Baretta @ 2002-04-27 16:17 UTC (permalink / raw)
  To: Ocaml

Bonjour messieurs!

Je suis en train de programmer une librairie qui implemente 
les services http pour un "web-robot". Il me servirait une 
fonction comme "Pervasives.input_line" mais qui lise 
jusqu'au but de la ligne, cet-a-dire, incluant le '\n'. J'ai 
lu le code source de la input_ligne officielle, et j'ai vu 
qu'il serait tres simple de coder une nouvelle fonction 
input_ligne2 qui lise le '\n' aussi, mais en generale il ne 
me semble pas une tres bonne idee de modifier le code source 
   de la librairie standard du langage. Qu'en pensez vous?

Merci, et Vive le Caml!

Alex Baretta

-------------------
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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] Pervasives.input_line
  2002-04-27 16:17 [Caml-list] Pervasives.input_line Alessandro Baretta
@ 2002-05-02  7:06 ` Florian Hars
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Hars @ 2002-05-02  7:06 UTC (permalink / raw)
  To: Alessandro Baretta; +Cc: Ocaml

begin  Alessandro Baretta quote:
> j'ai vu 
> qu'il serait tres simple de coder une nouvelle fonction 
> input_ligne2 qui lise le '\n' aussi, mais en generale il ne 
> me semble pas une tres bonne idee de modifier le code source 
> de la librairie standard du langage.

Just copy the code and make the changes you need to your
renamed function. Since you are writing a HTTP library, you
must be careful about line endings anyway, since the HTTP
standard defines the terminator as <CR><LF>, which the more or
less broken impementations your code will be talking to may
or may not implement correctly.

Yours, Florian.
-------------------
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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-02  6:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-27 16:17 [Caml-list] Pervasives.input_line Alessandro Baretta
2002-05-02  7:06 ` Florian Hars

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).