-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bleadperl 6f1401dc2a breaks Tie::Scalar::Random #11232
Comments
From @cpansprout(as noted at <https://rt.cpan.org/Ticket/Display.html?id=66951>) This is a real problem, but I don’t know if there is any realistic fix. This module does $line != $line, where $line is tied, so it produces a different random value at each invocation. But now pp_ne calls get-magic up front, to check for overloading, and the comparison part skips it. Since get-magic works by writing the returned value to the scalar itself, by the time it gets to the comparison part, it’s just two pointers to the same scalar, which will always compare equal. Since Perl_try_amagic_bin always calls magic just once if the two operands are the same, maybe we could modify binary operators that use try_amagic_bin to call get-magic once more on the operand if the two operands are the same. Flags: Site configuration information for perl 5.13.11: Configured by sprout at Thu Mar 24 14:02:46 PDT 2011. Summary of my perl5 (revision 5 version 13 subversion 11) configuration: Locally applied patches: @INC for perl 5.13.11: Environment for perl 5.13.11: |
From @obra[this ticket is now a 5.14 blocker] |
The RT System itself - Status changed from 'new' to 'open' |
From @cpansproutAnd Tie-DataUUID-1.00. |
From @iabynOn Sun, Apr 03, 2011 at 04:37:44PM -0700, Father Chrysostomos wrote:
Yuk. Yes, this is a real regression since 5.13.1, and may affect up to 40 For those following at home, the basic change is that where the same SV is To fix this, new tests will need to be added for all 40 ops, and the This will probably take me a couple of days (calendar), and introduces a Note that reverting the commit that broke it -- |
From @cpansproutOn Mon Apr 04 15:32:06 2011, davem wrote:
I’ve just push to-do tests with commit b04496f (but I got the bug
|
From [Unknown Contact. See original ticket]On Mon Apr 04 15:32:06 2011, davem wrote:
I’ve just push to-do tests with commit b04496f (but I got the bug
|
From @cpansproutI’ve now fixed this with commit 75ea7a1. See http://perl5.git.perl.org/perl.git/commitdiff/75ea7a1 for more |
From [Unknown Contact. See original ticket]I’ve now fixed this with commit 75ea7a1. See http://perl5.git.perl.org/perl.git/commitdiff/75ea7a1 for more |
@cpansprout - Status changed from 'open' to 'resolved' |
From @iabynOn Thu, Apr 07, 2011 at 11:04:54PM -0700, Father Chrysostomos via RT wrote:
Thanks for this, looks good. to include the '^' operator, and to cover mutator op variants (e.g. +=). -- |
Migrated from rt.perl.org#87708 (status was 'resolved')
Searchable as RT87708$
The text was updated successfully, but these errors were encountered: