Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 Archives:
Bug reports: FAQ:
Beginner's list: