summaryrefslogtreecommitdiff
path: root/op.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-08-31 09:05:50 +0000
committerNicholas Clark <nick@ccl4.org>2006-08-31 09:05:50 +0000
commit78c72037c327e2cd8ede6cf098324435a670ca67 (patch)
treea16b884a1b38e00a54fe96eb7fe890408d6abb13 /op.h
parent2e0df0e80ba5355d269a0006da239be95c70765d (diff)
downloadperl-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/op.h b/op.h
index c299c5d40f..0713711020 100644
--- a/op.h
+++ b/op.h
@@ -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