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

Re: issue #21044: mortalization of undef return

Thread Previous | Thread Next
From:
Tony Cook
Date:
May 6, 2023 15:33
Subject:
Re: issue #21044: mortalization of undef return
Message ID:
ZFZzV890NKiVU0fu@venus.tony.develop-help.com
On Sat, May 06, 2023 at 10:25:04AM -0400, Ricardo Signes wrote:
> 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?

https://github.com/Perl/perl5/pull/21064

reverts c56d7fa91 aka #20800 while adding a test for the behaviour it broke.

Tony


Thread Previous | 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