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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Type: text/plain; charset="utf8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 359
Download (untitled) / with headers
text/plain 359b
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 '')
X-Spam-Status: No, hits=-2.4 required=8.0 tests=BAYES_00,HOT_NASTY
In-Reply-To: <rt-3.6.HEAD-10341-1158974242-1960.21629-4-0 [...] rt.cpan.org>
Content-Disposition: inline
Received-SPF: neutral (x1.develooper.com: local policy)
References: <RT-Ticket-21629 [...] rt.cpan.org> <rt-3.6.HEAD-10341-1158974242-1960.21629-4-0 [...] rt.cpan.org>
X-Pair-Authenticated: 84.63.59.24
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 350D24D8143 for <bug-Math-BigInt [...] rt.cpan.org>; Mon, 25 Sep 2006 08:51:53 -0400 (EDT)
Received: (qmail 6138 invoked by alias); 25 Sep 2006 12:51:53 -0000
Received: from relay02.pair.com (HELO relay02.pair.com) (209.68.5.16) by la.mx.develooper.com (qpsmtpd/0.28) with SMTP; Mon, 25 Sep 2006 05:51:32 -0700
Received: (qmail 11270 invoked from network); 25 Sep 2006 12:51:24 -0000
Received: from unknown (HELO bloodgate.com) (unknown) by unknown with SMTP; 25 Sep 2006 12:51:24 -0000
Delivered-To: cpan-bug+math-bigint [...] diesel.bestpractical.com
User-Agent: KMail/1.9.1
Subject: Re: [rt.cpan.org #21629] overloaded $@ caused issues ... not enough magic
Return-Path: <nospam-abuse [...] bloodgate.com>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: bug-Math-BigInt [...] rt.cpan.org
Date: Mon, 25 Sep 2006 14:49:06 +0200
Message-Id: <200609251449.13943 [...] bloodgate.com>
To: bug-Math-BigInt [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Tels <nospam-abuse [...] bloodgate.com>
X-RT-Original-Encoding: utf-8
RT-Message-ID: <rt-3.6.HEAD-12264-1159188717-771.21629-0-0 [...] rt.cpan.org>
Content-Length: 1965
Download (untitled) / with headers
text/plain 1.9k
-----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-----
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Message-Id: <rt-3.6.HEAD-25775-1169812103-393.21629-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 215
Download (untitled) / with headers
text/plain 215b
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.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.