Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] abs min_int
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Florian Hars <hars@b...>
Subject: Re: [Caml-list] abs min_int
Christoph Bauer wrote:
> # abs min_int;;
> - : int = -1073741824
> 
> IMO abs should thow an Failure exception or the manual should 
> point out this behavior.

This is the expected behaviour as documented in the manual.

Yours, Florian

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