Perl Monk, Perl Meditation | |
PerlMonks |
Re^7: How does Math::GMP overload the assignment operator ?by Haarg (Priest) |
on Nov 09, 2020 at 17:42 UTC ( [id://11123532]=note: print w/replies, xml ) | Need Help?? |
It's not immutable. It provides an add_ui_gmp method that mutates the object. If it was actually immutable, there wouldn't be any trap because it wouldn't really matter if you cloned objects or not when using them in multiple places.
In Section
Seekers of Perl Wisdom
|
|