summaryrefslogtreecommitdiff
path: root/op.h
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2021-02-08 23:27:30 +0000
committerPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2021-02-08 23:27:42 +0000
commit16676e213e35e2dd7ceb8973b640ef7cf43b3ebc (patch)
tree97e552b95367c5395bdcaa50c6a784349cb926dc /op.h
parent5fa8d5db906c2b647f6651b061de02e805d898a1 (diff)
downloadperl-16676e213e35e2dd7ceb8973b640ef7cf43b3ebc.tar.gz
Add documentation comment to op.h to clarify that LOGOP's ->op_other is in execution order pointer, not a tree-structural one
Diffstat (limited to 'op.h')
-rw-r--r--op.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/op.h b/op.h
index 6d8729680b..c6de0d19fa 100644
--- a/op.h
+++ b/op.h
@@ -224,6 +224,12 @@ struct binop {
struct logop {
BASEOP
OP * op_first;
+
+ /* Note that op->op_other is the *next* op in execution order of the
+ * alternate branch, not the root of the subtree. I.e. imagine it being
+ * called ->op_otherfirst.
+ * To find the structural subtree root (what could be called
+ * ->op_otherroot), use OpSIBLING of ->op_first */
OP * op_other;
};