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

Re: issue #21044: mortalization of undef return

Thread Previous
From:
Ricardo Signes
Date:
May 12, 2023 15:24
Subject:
Re: issue #21044: mortalization of undef return
Message ID:
41e1b26b-53fe-4986-9603-8e58d505003d@betaapp.fastmail.com
This has been merged, thanks!

On Sat, May 6, 2023, at 11:33, Tony Cook wrote:
> 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


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