caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* int_of_string bug
@ 2007-03-29 16:27 Yaron Minsky
  2007-03-29 21:29 ` [Caml-list] " Oliver Bandel
  2007-03-30  1:21 ` Brian Hurt
  0 siblings, 2 replies; 15+ messages in thread
From: Yaron Minsky @ 2007-03-29 16:27 UTC (permalink / raw)
  To: caml-list

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

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.

First of all, people should be aware of this behavior and should defend
against it in their code.  Secondly, the justification for not fixing it
seems really thin.  The behavior seems obviously wrong, and it's hard to see
why one wouldn't simply fix the lexer (perhaps by providing an alternate
broken implementation of int_of_string) and leave the ordinary int_of_string
where it is.

y

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2007-04-03 22:30 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-29 16:27 int_of_string bug Yaron Minsky
2007-03-29 21:29 ` [Caml-list] " Oliver Bandel
2007-03-30  0:26   ` Yaron Minsky
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

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).