Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by syphilis (Bishop)
on Nov 10, 2020 at 00:36 UTC ( #11123545=note: print w/replies, xml ) Need Help??


in reply to Re^7: How does Math::GMP overload the assignment operator ?
in thread How does Math::GMP overload the assignment operator ?

It's not immutable. It provides an add_ui_gmp method ...

Aaah - when I saw "methods" in your earlier post I was thinking that you meant "ways of overloading" ... but, of course, when you said "methods" you meant "methods".
Your post makes perfect sense. (Did I mention that I might have had an inkling that I was being dense ? ;-)

It's an interesting idea and thanks muchly for presenting it.
However, for my own modules, I think I'll be sticking with the functions that permit objects to mutate.
Creating new objects all of the time sounds expensive ... though I haven't done any tests on the costs.

Cheers,
Rob
  • Comment on Re^8: How does Math::GMP overload the assignment operator ?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2021-11-28 11:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?