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:
wolfsage
Date:
January 27, 2014 15:28
Subject:
Re: [perl #121077] [PATCH] Optimise 'my $x; my $y' into 'my ($x, $y)'
Message ID:
CAJ0K8bgHazrntW7L6BFWtVwO51gZOkS2EJbMiw7BqnJ-vUFdhw@mail.gmail.com
But one final question.

In rpeep, sometimes ops are cleared manually:

 o->op_type = OP_NULL;
 o->op_ppaddr = PL_ppaddr[OP_NULL];

Other times:

  op_null(o);

And still:

  op_free(o);

Or even:

  cop_free(o);

op_null() is basically the first variant but also sets o->op_targ =
o->op_type before nulling.

Which one do I actually need here?

-- Matthew Horsfall (alh)

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