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

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

Thread Previous | Thread Next
From:
Tony Cook via RT
Date:
January 27, 2014 23:44
Subject:
[perl #121077] [PATCH] Optimise 'my $x; my $y' into 'my ($x, $y)'
Message ID:
rt-4.0.18-10353-1390866241-1381.121077-15-0@perl.org
On Mon Jan 27 09:11:18 2014, alh wrote:
> New patch attached, with test cases.
> 
> I'm only checking of OPf_MOD, but perhaps the pushmark should have all
> of the flags of the padop...
> 
> Not sure.

One issue with both patches is deparsing:

tony@mars:.../git/perl2$ ./perl -Ilib -MO=Deparse -e 'sub foo { my $x; my $y; 1 }'
sub foo {
    my($x, $y);
    1;
}
-e syntax OK


Tony

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=121077

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