develooper Front page | perl.perl5.porters | Postings from June 2008

Re: [perl #56150] return return

Thread Previous | Thread Next
Yitzchak Scott-Thoennes
June 25, 2008 01:38
Re: [perl #56150] return return
Message ID:
On Wed, June 25, 2008 1:17 am, Reini Urban wrote:
> David Nicol schrieb:
>> leaving the question, why doesn't the optimizer get rid of return?
>> tentative answer: because the optimizer authors didn't get around to
>> it, seeing once-per-subroutine as not enough savings to justify the
>> effort.
> The optimizer does something with the op_type OP_RETURN.
> The ck_return() does change all kids to OP_LEAVESUBLV if lvalue'd.
> The problem is the tokenizer.

Wouldn't this go in a ck_ for leavesub, leavesublv, and leavetry?
Or maybe lineseq; don't know where all that is used or what its
purpose is.

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