develooper Front page | perl.perl5.porters | Postings from May 2023

issue #21044: mortalization of undef return

Thread Next
From:
Ricardo Signes
Date:
May 6, 2023 14:25
Subject:
issue #21044: mortalization of undef return
Message ID:
027198cb-fee1-45c0-bce0-ea48fbb208ad@dogfoodapp.fastmail.com
Porters,

This email is about a release blocker, #21044 <https://github.com/Perl/perl5/issues/21044>.

snowdrop:~$ perl5.36.0 -e '$_->{x} for sub { undef }->()'
snowdrop:~$ echo $?
0

Great.  But:

snowdrop:~$ perl5.37.10 -e '$_->{x} for sub { undef }->()'
Modification of a read-only value attempted at -e line 1.

This affects code on the CPAN, and it doesn't seem like an extremely unusual thing to expect out in the world.  Richard L. suggested we revert #20800 <https://github.com/Perl/perl5/pull/20800>.  Any objections or better ideas?

-- 
rjbs
Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About