go ahead... be a heretic | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
The real solution to this is to make your objects immutable
That (along with the elaboration you've provided) seems to be describing exactly what Math::GMP does. And yet Math::GMP also sets that very same troublesome trap wrt overloading '=' that I find disconcerting. So, I'm left wondering just what it is that this "solution" solves. I'll point out that I don't mean that last sentence to sound as smartarsey as it does. Deep down I know the problem is that I'm being dense. Cheers, Rob In reply to Re^6: How does Math::GMP overload the assignment operator ?
by syphilis
|
|