develooper Front page | perl.perl5.porters | Postings from September 2018

Re: Fatalizations promised for perl-5.30: what is their status

Thread Previous | Thread Next
From:
James E Keenan
Date:
September 25, 2018 18:59
Subject:
Re: Fatalizations promised for perl-5.30: what is their status
Message ID:
20180925185922.22728.qmail@lists-nntp.develooper.com
On 09/11/2018 01:24 PM, James E Keenan wrote:
[snip]
> 
> So that we can research all relevant cases, I'm attaching an ack of the 
> core for the places where this warning appears.
> 

In that attachment, I identified these sections of the core distribution 
that pertained to the fatalization of "my() in false conditional":

#####
op.c-8260-		&& o2->op_private & OPpLVAL_INTRO
op.c-8261-		&& !(o2->op_private & OPpPAD_STATE))
op.c-8262-	    {
op.c-8263-		Perl_ck_warner_d(aTHX_ packWARN(WARN_DEPRECATED),
op.c-8264-                                "Deprecated use of my() in 
false conditional. "
op.c:8265:                                "This will be a fatal error in 
Perl 5.30");
op.c-8266-	    }
op.c-8267-
op.c-8268-	    *otherp = NULL;
op.c-8269-	    if (cstop->op_type == OP_CONST)
op.c-8270-		cstop->op_private |= OPpCONST_SHORTCIRCUIT;
--
pod/perl5260delta.pod-1609-This existing warning has had the I<this will 
not be allowed> text added
pod/perl5260delta.pod-1610-in this release.
pod/perl5260delta.pod-1611-
pod/perl5260delta.pod-1612-=item *
pod/perl5260delta.pod-1613-
pod/perl5260delta.pod:1614:L<Deprecated use of C<my()> in false 
conditional. This will be a fatal error in Perl 5.30
pod/perl5260delta.pod:1615:|perldiag/Deprecated use of C<my()> in false 
conditional. This will be a fatal error in Perl 5.30>
pod/perl5260delta.pod-1616-
pod/perl5260delta.pod-1617-This existing warning has had the I<this will 
be a fatal error> text added
pod/perl5260delta.pod-1618-in this release.
pod/perl5260delta.pod-1619-
pod/perl5260delta.pod-1620-=item *
#####

Can anyone recall whether this was tied to a specific RT?

There is a [META] ticket for my() in false conditional: 
https://rt.perl.org/Ticket/Display.html?id=89652.  That ticket includes 
both resolved and still-open items.  But I'm not sure which of those, if 
any, pertains to the scheduled fatalization cited above.

Thank you very much.
Jim Keenan

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