From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id IAA28236; Thu, 2 May 2002 08:58:02 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id IAA28232 for ; Thu, 2 May 2002 08:58:01 +0200 (MET DST) Received: from grisu.bik-gmbh.de (grisu.bik-gmbh.de [194.233.237.82]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g426w0X27963 for ; Thu, 2 May 2002 08:58:00 +0200 (MET DST) Received: from prony.bik-gmbh.de (prony.bik-gmbh.de [194.233.237.133]) by grisu.bik-gmbh.de (8.11.3/8.11.1) with ESMTP id g426uco70062; Thu, 2 May 2002 08:56:44 +0200 (CEST) (envelope-from hars@bik-gmbh.de) Received: from hars by prony.bik-gmbh.de with local (Exim 3.33 #1 (Debian)) id 173Afc-0003qh-00; Thu, 02 May 2002 09:06:28 +0200 Date: Thu, 2 May 2002 09:06:28 +0200 From: Florian Hars To: Alessandro Baretta Cc: Ocaml Subject: Re: [Caml-list] Pervasives.input_line Message-ID: <20020502070628.GA14767@bik-gmbh.de> References: <3CCACF27.5080001@baretta.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3CCACF27.5080001@baretta.com> User-Agent: Mutt/1.3.24i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 , 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