caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Yaron Minsky" <yminsky@cs.cornell.edu>
To: "Oliver Bandel" <oliver@first.in-berlin.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] int_of_string bug
Date: Thu, 29 Mar 2007 20:26:06 -0400	[thread overview]
Message-ID: <891bd3390703291726ue71cfa6re8d4c3d66520e4d9@mail.gmail.com> (raw)
In-Reply-To: <20070329212931.GG6843@first.in-berlin.de>

[-- Attachment #1: Type: text/plain, Size: 1131 bytes --]

On 3/29/07, Oliver Bandel <oliver@first.in-berlin.de> wrote:
>
> 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. :(


That's a problem too, but there is at least a defensible reason for that,
which is that it is expensive to get integer overflow to throw an exception.

Ciao,
>    Oliver Bandel
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>

[-- Attachment #2: Type: text/html, Size: 1960 bytes --]

  reply	other threads:[~2007-03-30  0:26 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-29 16:27 Yaron Minsky
2007-03-29 21:29 ` [Caml-list] " Oliver Bandel
2007-03-30  0:26   ` Yaron Minsky [this message]
2007-03-30  7:30     ` Florian Weimer
2007-03-30  8:44       ` skaller
2007-03-30  8:59         ` Andreas Rossberg
2007-03-30  9:20           ` skaller
2007-03-30  1:21 ` Brian Hurt
2007-03-30  1:26   ` Yaron Minsky
2007-03-30  4:23     ` skaller
2007-03-30  5:59       ` Erik de Castro Lopo
2007-03-30  6:22         ` skaller
2007-03-30 13:38         ` Markus Mottl
2007-04-03 17:51           ` Toby Kelsey
2007-04-03 22:37             ` ls-ocaml-developer-2006

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=891bd3390703291726ue71cfa6re8d4c3d66520e4d9@mail.gmail.com \
    --to=yminsky@cs.cornell.edu \
    --cc=caml-list@inria.fr \
    --cc=oliver@first.in-berlin.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).