Skip Menu |

This queue is for tickets about the Math-BigInt CPAN distribution.

Report information
The Basics
Id: 21629
Status: resolved
Worked: 25 min
Priority: 0/
Queue: Math-BigInt

People
Owner: TELS [...] cpan.org
Requestors: chris [...] prather.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.77
Fixed in: (no value)



Subject: overloaded $@ caused issues ... not enough magic
Trying to load a package that loaded Math::BigInt into AxKit2 I got the following: eval Operation "eq": no method found, left argument in overloaded package AxKit2::StructuredError, right argument has no overloaded magic at /opt/local/lib/perl5/5.8.8/Math/BigInt.pm line 2437. I resolved it by changing line 2437 from if ($@ eq '') to if ("$@" eq '')
Subject: Re: [rt.cpan.org #21629] overloaded $@ caused issues ... not enough magic
Date: Mon, 25 Sep 2006 14:49:06 +0200
To: bug-Math-BigInt [...] rt.cpan.org
From: Tels <nospam-abuse [...] bloodgate.com>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Moin, On Saturday 23 September 2006 03:17, chris@prather.org via RT wrote: Show quoted text
> Fri Sep 22 21:17:22 2006: Request 21629 was acted upon. > Transaction: Ticket created by chris@prather.org > Queue: Math-BigInt > Subject: overloaded $@ caused issues ... not enough magic > Broken in: 1.77 > Severity: Normal > Owner: Nobody > Requestors: chris@prather.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=21629 > > > > Trying to load a package that loaded Math::BigInt into AxKit2 I got the > following: > > eval Operation "eq": no method found, left argument in overloaded > package AxKit2::StructuredError, right argument has no overloaded magic > at /opt/local/lib/perl5/5.8.8/Math/BigInt.pm line 2437. > > I resolved it by changing line 2437 from > > if ($@ eq '') > > to > > if ("$@" eq '')
I am not sure if this is the right way to fix. Wouldn't it make much more sense to fix the overloading for $@ inside AxKit2 to provide a stringify method? If AxKit2 returns an overloeaded object, it should make sure the object is usable and not halfbroken. Otherwise, a lot more code than just BigInt will be not working with it. Best wishes, Tels - -- Signed on Mon Sep 25 14:47:49 2006 with key 0x93B84C15. Visit my photo gallery at http://bloodgate.com/photos/ PGP key on http://bloodgate.com/tels.asc or per email. "Where shall I put you? Under H, like Hot, Sexy Mama?" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iQEVAwUBRRfQSXcLPEOTuEwVAQJB8Qf+LTTxiV0yeNn/GXi1IYH3Ozqfqgwm/eaM jEKWEWoWLCIDKJerFCmEmN4MQqL33HV0oO9GsRHKdHw/jWb0H4clRjQT0lZPApIK LEqI7/RbUDQBiUAF1uRB5hjOh6eN1PechZ20iwbcefPHwwZoQpVmaQYvc8hbwTWy 15Ti6jAgtUOEjeQR5u5hPTIUiyCRre6lduzV1/qAkHsSvO7Y/JSm5ebhAr1VSTkj NSJxgaqKz4RyqOt44coUYeWEKEz9rwUv8UUrnNSUeFsYfb3DELWzJ6rJihIBGgm0 jsAfacCXyFzweXM1b01CXJ1KxRmbccu18pwhMO8ModepulpbxYtuJw== =ZmQS -----END PGP SIGNATURE-----
I am marking this as "WONTFIX", as I couldn't determine what exactly was wrong and if the error is in BigInt or the package that uses it. If you stil have problems, please respond to this message with more details.