Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Math::BigInt new

by remiah (Hermit)
on Sep 27, 2012 at 23:12 UTC ( #996089=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Math::BigInt new
in thread Math::BigInt new

I also think this is strange. There is no checking for ref($class). I guess something like ...

if ( ref($class) ){ my $t = $wanted; $t =~ s/^[+-]//; return bless { sign => $class->{sign}, value => $CALC->_new($t), }, ref($class); }
should be in new constructor, doesn't it?


Comment on Re^3: Math::BigInt new
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996089]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2015-07-31 08:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (275 votes), past polls