develooper Front page | perl.perl5.porters | Postings from January 2014

Re: [perl #121077] [PATCH] Optimise 'my $x; my $y' into 'my ($x, $y)'

Thread Previous | Thread Next
From:
Father Chrysostomos
Date:
January 28, 2014 01:55
Subject:
Re: [perl #121077] [PATCH] Optimise 'my $x; my $y' into 'my ($x, $y)'
Message ID:
20140128015528.9346.qmail@lists-nntp.develooper.com
Tony Cook wrote:
> On Mon Jan 27 16:02:45 2014, perl5-porters@perl.org wrote:
> > What is wrong with that?  It shows how perl understands the code.
> > Evaluating it produces an op tree that behaves identically.
> 
> The padrange optimization which this is built on, does preserve the deparse:
> 
> $ ~/perl/blead/bin/perl5.19.8 -MO=Deparse -e 'sub foo { my ($x, $y); my $z; 1 }
> '
> sub foo {
>     my($x, $y);
>     my $z;
>     1;
> }
> -e syntax OK

I would consider that adventitious.


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