develooper Front page | perl.perl5.porters | Postings from September 2009

[PATCH] push in Void Context

Thread Next
September 15, 2009 14:58
[PATCH] push in Void Context
Message ID:
The attached patch avoids pushing an IV onto the stack for a push op in void 
context.  The "Is there attached magic" branch in the op checks for void 
context as does the non-magical branch in the unshift op.

Curiously, the magical-branch in unshift does not perform this check, but 
that's more than I want to explore today.

All tests pass for me with blead.

-- c

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