Skip Menu |

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

Report information
The Basics
Id: 79902
Status: resolved
Priority: 0/
Queue: Math-BigInt

Owner: Nobody in particular
Requestors: quantum.mechanic.1964 [...]

Bug Information
Severity: Normal
Broken in: 1.997
Fixed in: 1.999716

Subject: $object->new($new_value) returns the original value as classname
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 1020
Download (untitled) / with headers
text/plain 1020b
This blesses the new object into some stringification of the old value and the object memory address. Example: ------------------------- #!perl use strict; use warnings; use Math::BigInt; my $x = new Math::BigInt 27; # as expected, value 27 my $y = $x->new(44); # class is 27=HASH(0x151dfe4), though the rest of the object is OK my $z = $x->new(); # as expected, value 0 my $q = $x->new(99) + 1; # 22754941 (large number, treating memory address as a number) exit; ---------------------------------- From debugger: ----------------------------------- main::( my $x = new Math::BigInt 27; DB<1> DB<1> n main::( my $y = $x->new(44); DB<1> x $y 0 27=HASH(0x151d944) 'sign' => '+' 'value' => ARRAY(0x1511e4c) 0 44 -------------------------------------- shows a version of 1.998, which is not listed here. Strawberry Perl: This is perl 5, version 16, subversion 1 (v5.16.1) built for MSWin32-x86-multi-thread

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

Please report any issues with to