I also think this is strange. There is no checking for ref($class). I guess something like ...
should be in new constructor, doesn't it?if ( ref($class) ){ my $t = $wanted; $t =~ s/^[+-]//; return bless { sign => $class->{sign}, value => $CALC->_new($t), }, ref($class); }
In reply to Re^3: Math::BigInt new
by remiah
in thread Math::BigInt new
by QM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |