caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Int overflow in literals
@ 2003-10-30 13:53 Marcin 'Qrczak' Kowalczyk
  2003-10-30 17:37 ` Alex Baretta
                   ` (2 more replies)
  0 siblings, 3 replies; 22+ messages in thread
From: Marcin 'Qrczak' Kowalczyk @ 2003-10-30 13:53 UTC (permalink / raw)
  To: caml-list

I understand that int overflow is not checked on arithmetic for
efficiency reasons, but IMHO it would be better if it was checked
at least in literals. When someone writes 10000000000, he certainly
does not mean -737418240.

It caused confusion in a class when someone was interactively testing
a function with larger and larger inputs.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak@knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


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

end of thread, other threads:[~2003-11-07  8:23 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-30 13:53 [Caml-list] Int overflow in literals Marcin 'Qrczak' Kowalczyk
2003-10-30 17:37 ` Alex Baretta
2003-10-30 17:59   ` Frederic van der Plancke
2003-10-30 19:20     ` Oleg Trott
2003-10-30 19:40       ` Marcin 'Qrczak' Kowalczyk
2003-10-30 20:05 ` Issac Trotts
2003-10-30 21:14   ` Oleg Trott
2003-10-30 21:26     ` Kenneth Knowles
2003-10-31  0:18       ` Jacques Garrigue
2003-10-31  2:05         ` Kenneth Knowles
2003-11-02 15:05     ` skaller
2003-11-02 16:23       ` Brian Hurt
2003-11-02 16:39         ` Marcin 'Qrczak' Kowalczyk
2003-11-07  7:22         ` skaller
2003-10-30 21:36   ` Frederic van der Plancke
2003-10-30 23:27     ` Issac Trotts
2003-10-30 23:43     ` Oleg Trott
2003-10-31 16:42 ` Xavier Leroy
2003-10-31 17:39   ` Marcin 'Qrczak' Kowalczyk
2003-10-31 17:50   ` Oleg Trott
2003-11-02 15:23   ` skaller
2003-11-02 16:37     ` Marcin 'Qrczak' Kowalczyk

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