From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 2AC44BC69 for ; Thu, 29 Mar 2007 23:29:35 +0200 (CEST) Received: from einhorn.in-berlin.de (einhorn.in-berlin.de [192.109.42.8]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2TLTYLK032066 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Thu, 29 Mar 2007 23:29:34 +0200 X-Envelope-From: oliver@first.in-berlin.de X-Envelope-To: Received: from first (dslb-088-073-123-088.pools.arcor-ip.net [88.73.123.88]) (authenticated bits=0) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id l2TLTXb6024461 for ; Thu, 29 Mar 2007 23:29:33 +0200 Received: by first (Postfix, from userid 501) id 9CC6939C2C8; Thu, 29 Mar 2007 23:29:31 +0200 (CEST) Date: Thu, 29 Mar 2007 23:29:31 +0200 From: Oliver Bandel To: caml-list@inria.fr Subject: Re: [Caml-list] int_of_string bug Message-ID: <20070329212931.GG6843@first.in-berlin.de> References: <891bd3390703290927o4e1c6bb5gf8f562fedbc70096@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <891bd3390703290927o4e1c6bb5gf8f562fedbc70096@mail.gmail.com> User-Agent: Mutt/1.5.6i X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 X-Miltered: at concorde with ID 460C2FBE.002 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bandel:01 in-berlin:01 bug:01 yaron:01 minsky:01 bug:01 lexer:01 bandel:01 wrote:01 oliver:01 oliver:01 exception:01 caml-list:01 int:01 int:01 On Thu, Mar 29, 2007 at 12:27:05PM -0400, Yaron Minsky wrote: > So, there's a weird int_of_string bug where positive decimal numbers are > sometimes read in as negative numbers without error. Here's the bug: > > http://caml.inria.fr/mantis/view.php?id=0004210 > > This has been marked as "wontfix" in the bug database because apparently > there's some weird spot in the lexer that depends on the wrong behavior of > int_of_string. [...] Oh, that's bad. :( But btw. it's also bad that, when overflowing of int occurs, no exception is thrown. :( Ciao, Oliver Bandel