From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 04D00BC28 for ; Wed, 3 Nov 2004 23:17:30 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iA3MHTnV008966 for ; Wed, 3 Nov 2004 23:17:29 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA18684 for ; Wed, 3 Nov 2004 23:17:29 +0100 (MET) Received: from smtp004.mail.ukl.yahoo.com (smtp004.mail.ukl.yahoo.com [217.12.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id iA3MHSLK008963 for ; Wed, 3 Nov 2004 23:17:29 +0100 Received: from unknown (HELO ?82.121.158.64?) (sejourne?kevin@82.121.158.64 with plain) by smtp004.mail.ukl.yahoo.com with SMTP; 3 Nov 2004 22:17:28 -0000 Message-ID: <41896851.1060104@yahoo.fr> Date: Wed, 03 Nov 2004 23:22:57 +0000 From: sejourne_kevin User-Agent: Mozilla Thunderbird 0.8 (X11/20040926) X-Accept-Language: fr, en MIME-Version: 1.0 To: Serge Cc: caml-list@inria.fr Subject: Re: [Caml-list] Worsening standard library References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Miltered: at concorde with ID 418958F9.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 418958F8.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 extensively:01 integers:01 doubles:01 pervasives:01 pervasives:01 functions:01 floats:01 int:01 parse:02 ecrit:03 float:03 library:03 serge:05 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: Serge a écrit : > Gentlemen! > > I think this might be kinda offtopic, but nevertheless. OCaml is being > extensively employed for educational purposes, and it looks like it is > still missing an important feature - the one of easy reading numbers > (integers/floats/doubles) from, say, standard input. You have to read > lines and parse numbers out of them. For instance, in Pascal it was > possible to do "read(x)". There is some functions for doing that: Pervasives.read_line Pervasives.read_int Pervasives.read_float