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
Tony Cook via RT
January 27, 2014 23:44
[perl #121077] [PATCH] Optimise 'my $x; my $y' into 'my ($x, $y)'
Message ID:
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);
-e syntax OK


via perlbug:  queue: perl5 status: open

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About