A question on catching integer overflow.

Kevin Ryde user42 at zip.com.au
Fri Apr 2 23:34:44 CEST 2004


zhifeng Li <z-li1 at northwestern.edu> writes:
>
> Is there any better way to handle this problem?

How you choose when to go to bignums is not really a matter for gmp.

> Certainly, checking every operation on integers would be too
> costly.

Well, it's also the only option if you want fixnums to automatically
go to bignums at necessary times.  Plenty of language interpreters do
exactly this (lisp, smalltalk, various functional langs).

-- 
All followups to gmp-bugs at swox.com please.


More information about the gmp-bugs mailing list