From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA05483 for caml-redistribution; Wed, 1 Mar 2000 20:02:02 +0100 (MET) 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 SAA00653 for ; Wed, 1 Mar 2000 18:16:28 +0100 (MET) Received: from dpt-info.u-strasbg.fr (dpt-info.u-strasbg.fr [130.79.6.1]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id SAA00696 for ; Wed, 1 Mar 2000 18:16:26 +0100 (MET) Received: from lambda.u-strasbg.fr (lambda.u-strasbg.fr [130.79.75.49]) by dpt-info.u-strasbg.fr (8.9.3/8.9.3) with ESMTP id SAA22604; Wed, 1 Mar 2000 18:16:25 +0100 Received: from luther by lambda.u-strasbg.fr with local (Exim 3.12 #1 (Debian)) id 12QCms-0000nI-00; Wed, 01 Mar 2000 18:19:50 +0100 Date: Wed, 1 Mar 2000 18:19:50 +0100 From: Sven LUTHER To: Jean-Yves Moyen Cc: caml-list@inria.fr Subject: Re: probleme de parsing ? Message-ID: <20000301181950.A3021@dpt-info.u-strasbg.fr> Reply-To: luther@dpt-info.u-strasbg.fr Mail-Followup-To: Jean-Yves Moyen , caml-list@inria.fr References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0.1i In-Reply-To: ; from jymoyen@ens-lyon.fr on Tue, Feb 29, 2000 at 08:06:51PM +0100 Sender: weis On Tue, Feb 29, 2000 at 08:06:51PM +0100, Jean-Yves Moyen wrote: > Bonjour, il y a apparamment un probleme de parsing des chaines dans la > fonction int_of_string : les espaces precedents (ou suivant) les nombres > ne sont pas eliminer. En revanche, il le sont dans la fonction > float_of_string : > > # int_of_string " 5";; > Uncaught exception: Failure("int_of_string") > #float_of_string " 5";; > - : float = 5 > > (avec Ocaml 2.04) > > Est-ce voulu ? Si oui, pourquoi avoir introduit cette difference ? et au passage est-ce normal que caml-light 0.74 plante pour 1./.0. mais pour 1/0 l'exception est proprement attraper par le toplevel ? Amicalement, Sven LUTHER