This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
op.c:newATTRSUB: Change an if condition to an else
authorFather Chrysostomos <sprout@cpan.org>
Sat, 24 Nov 2012 04:40:39 +0000 (20:40 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 24 Nov 2012 15:35:50 +0000 (07:35 -0800)
commit7e18702058e5564da44e84546c67056637b62d83
tree991f7065a3abcbaab154bb183a4f726ec319e727
parent8daf8916b49984fc91791e8265cd7e1ca36b836c
op.c:newATTRSUB: Change an if condition to an else

In one spot we have if(blah blah balh) {...} followed by
if (<exactly the opposite>).  We can just change the second if to
an else, since the condition is not going to change here.

This brings newATTRSUB and newMYSUB slightly closer, allowing me
to factor some of it out into a static routine in the next commit.
op.c