Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: [Caml-list] 32-bit unsigned integers
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Sébastien Hinderer <Sebastien.Hinderer@e...>
Subject: Re: [Caml-list] 32-bit unsigned integers
Hi again,

Thank you very much for your help !

For sure, this new language feature is great.

However, I have another question:

With OCaml 3.08.0 :

# let max = 0xffffffffl;;
val max : int32 = -1l
# Printf.printf "%lu\n" max;;
4294967295
- : unit = ()
# 4294967295l;;
Integer literal exceeds the range of representable integers of type int32

Is this error the expected behaviour ?

Thanks in advance,
Sébastien.

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