Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: How does Math::GMP overload the assignment operator ?

by syphilis (Bishop)
on Nov 08, 2020 at 05:59 UTC ( #11123482=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $x += 4;
    or
    $x->add_ui_gmp(4);
    
  2. or download this
    $x = $orig;
    $x += 4; # $orig remains unchanged
             # $x has been incremented by 4
    
  3. or download this
    $x = $orig;
    $x->add_ui_gmp(4); # Both $x and $orig have
                       # been incremented by 4
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2021-10-25 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?