Author: kjs Date: Sun Nov 30 08:08:13 2008 New Revision: 33372 Modified: trunk/docs/pdds/pdd26_ast.pod
Log: [pdd26] add pasttype descriptions for 'chain' and 'return'. resolving RT#48705. Modified: trunk/docs/pdds/pdd26_ast.pod ============================================================================== --- trunk/docs/pdds/pdd26_ast.pod (original) +++ trunk/docs/pdds/pdd26_ast.pod Sun Nov 30 08:08:13 2008 @@ -287,6 +287,15 @@ =over 4 +=item chain + +A short-circuiting chain of operations. In a sequence of nodes +with pasttype 'chain', the right operand of a node serves as +the left operand of its parent. Each node is evaluated only +once, and the first false result short-circuits the chain. +In other words, C<< $x < $y < $z >> is true only if +$x < $y and $y < $z, but $y only gets evaluated once. + =item copy Copy the value of the node's second child into the variable @@ -390,6 +399,11 @@ node's C<inline> attribute (a string). See the C<inline> method below for details. +=item return + +Generate a return exception, using the first child (if any) as +a return value. + =item try Evaluates the first child, if any exceptions occur then they