Just another Perl shrine | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi, this problem made me so curious that I investigated a little bit more. I'm pretty sure I found a reason for the problem but not the details. Look at these two snippets which rebuild IMHO the code path which is taken by the initial code examples:
What you get is:
Compare this to the output of the snippet:
which has the following output:
Do you see the relevant difference? In the first case you get a Math::BigInt object, in the second case a Math::BigFloat object. After that I'm pretty sure that the constructor of Math::BigFloat does have a problem together with the pragma bignum. Probably it's worth to file a bug against Math::BigFloat or bignum (probably not so transparent as stated). I really don't know. Back to the initial problem. Math::FixedPrecision inherits from Math::BigFloat and not from Math::BigInt. Besides the fact that Math::FixedPrecision uses old and depreciated features of Math::BigFloat and manipulates the internals of Math::BigFloat circumventing the API which is a total OO-mess, this intransparency is pretty sure the cause of the exception. Regards In reply to Re^2: Math::FixedPrecision and bignum clash
by McA
|
|