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

[PATCH] push in Void Context

Thread Next
From:
chromatic
Date:
September 15, 2009 14:58
Subject:
[PATCH] push in Void Context
Message ID:
200909151458.04397.chromatic@wgz.org
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About