English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    
Browse thread
[Caml-list] Pervasives.input_line
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Florian Hars <florian@h...>
Subject: Re: [Caml-list] Pervasives.input_line
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