develooper Front page | perl.perl5.porters | Postings from June 2007

Re: integer overflow in hex, even with use bignum

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
June 12, 2007 09:19
Subject:
Re: integer overflow in hex, even with use bignum
Message ID:
b77c1dce0706120919x4775ecd9j7a41a8d730dcd78d@mail.gmail.com
On 12/06/07, Tels <nospam-abuse@bloodgate.com> wrote:
> The reason is that hex() and oct() are still not overloadable (AFAIK).
> Math::BigInt has stub code to make them work since about January 2005, but
> without support in overload.pm it's not gonna do anything.

Those are not operators, but built-in functions; you could override
CORE::hex and CORE::oct.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About