Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Int overflow in literals
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-10-31 (00:18)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: [Caml-list] Int overflow in literals
From: Kenneth Knowles <>
> On Thu, Oct 30, 2003 at 04:14:02PM -0500, Oleg Trott wrote:
> > Or, better yet, use Big_int:
> But one should note that the Num library, and thus Big_int, is under
> a different license than the ocaml distribution, and may be
> incompatible with your project.

If this is the only thing that bothers you, get the CVS version of
ocaml: bignum has just be rewritten from scratch, and is now available
under the same license as other libraries.

Funny how Xavier had to rewrite both regexp and bignum just for
questions of license...  the BSD ideal of freely reusable software is
really far away (and ocaml itself is not 100% free either).
(IIRC improving efficiency was another reason in both cases.)

Concerning the discussion 63-bit vs 31-bit, this is not directly
relevant as the ocaml compiler on 32-bit platforms does not put
63-bit integers in the code. At least there could be a warning for
constant overflow.

Jacques Garrigue

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: