From: skaller <skaller@users.sourceforge.net>
To: Yaron Minsky <yminsky@cs.cornell.edu>
Cc: Brian Hurt <bhurt@spnz.org>, caml-list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] int_of_string bug
Date: Fri, 30 Mar 2007 14:23:51 +1000 [thread overview]
Message-ID: <1175228631.18890.4.camel@rosella.wigram> (raw)
In-Reply-To: <891bd3390703291826k6002ef28i93bca9944cdbceee@mail.gmail.com>
On Thu, 2007-03-29 at 21:26 -0400, Yaron Minsky wrote:
> On 3/29/07, Brian Hurt <bhurt@spnz.org> wrote:
>
> Wether this behavior (silent wrap around) is correct or not is
> another
> argument. Elsewhere I have opinioned that the only purpose
> for having
> more than one type of integer in your programming language is
> so that
> programmers can pick the wrong one. But I'm widely known to
> be a heretic.
>
> Ocaml's behavior is, at least, *consistent*.
>
> Not really all that consistent:
>
> # int_of_string "1073741824";;
> - : int = -1073741824
> # int_of_string "1073741825";;
> Exception: Failure "int_of_string".
> #
skaller@rosella:/work/felix/svn/felix/felix/trunk$ ledit ocaml
Objective Caml version 3.10+dev25 (2007-03-26)
# int_of_string "1073741824";;
- : int = 1073741824
# int_of_string "1073741825";;
- : int = 1073741825
--
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net
next prev parent reply other threads:[~2007-03-30 4:29 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
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 [this message]
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=1175228631.18890.4.camel@rosella.wigram \
--to=skaller@users.sourceforge.net \
--cc=bhurt@spnz.org \
--cc=caml-list@yquem.inria.fr \
--cc=yminsky@cs.cornell.edu \
/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