diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-08-31 09:05:50 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-08-31 09:05:50 +0000 |
commit | 78c72037c327e2cd8ede6cf098324435a670ca67 (patch) | |
tree | a16b884a1b38e00a54fe96eb7fe890408d6abb13 /op.h | |
parent | 2e0df0e80ba5355d269a0006da239be95c70765d (diff) | |
download | perl-78c72037c327e2cd8ede6cf098324435a670ca67.tar.gz |
Change the generation of {} and [] from 3 ops to 1, and avoid 1 mortal
on the tempstack, by augmenting pp_anonlist and pp_anonhash to accept
OPf_SPECIAL to mean "return a reference to the aggregate" on the stack
rather than the aggregate itself.
p4raw-id: //depot/perl@28771
Diffstat (limited to 'op.h')
-rw-r--r-- | op.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -121,6 +121,8 @@ Deprecated. Use C<GIMME_V> instead. /* On OP_ENTERWHEN, there's no condition */ /* On OP_BREAK, an implicit break */ /* On OP_SMARTMATCH, an implicit smartmatch */ + /* On OP_ANONHASH and OP_ANONLIST, create a + reference to the new anon hash or array */ /* old names; don't use in new code, but don't break them, either */ #define OPf_LIST OPf_WANT_LIST |