in reply to Re^5: How does Math::GMP overload the assignment operator ?
in thread How does Math::GMP overload the assignment operator ?
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
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^7: How does Math::GMP overload the assignment operator ?
by Haarg (Priest) on Nov 09, 2020 at 17:42 UTC | |
by syphilis (Archbishop) on Nov 10, 2020 at 00:36 UTC |
In Section
Seekers of Perl Wisdom