Author: kjs Date: Sun Feb 3 10:49:02 2008 New Revision: 25478 Modified: trunk/docs/pdds/pdd26_ast.pod
Log: [pdd26] add description of :scope('attribute') Modified: trunk/docs/pdds/pdd26_ast.pod ============================================================================== --- trunk/docs/pdds/pdd26_ast.pod (original) +++ trunk/docs/pdds/pdd26_ast.pod Sun Feb 3 10:49:02 2008 @@ -194,6 +194,18 @@ to specify how to generate the aggregate if it doesn't already exist. +=item "attribute" + +Attribute variables represent object attributes (in some languages +they're called "member variables"). The attribute's name is given +by the node's C<name> attribute. Nodes representing attribute +variables have an optional child, representing the object to which +the attribute belongs. If this child is not present, the attribute +is assumed to belong to the current invocant, indicated by the +special variable C<self> (which is implicitly passed to all subs +that are flagged as a C<:method>. + + =back If C<scope> is not explicitly provided in the node, then PAST will @@ -309,7 +321,7 @@ semantics; simply set the first child to the left operand and the second child to the right operand, leaving the third child empty or uninitialized. If the first child evaluates to -true it is returned as the result of the operation, otherwise the +true it is returned as the result of the operation, otherwise the second child is evaluated and returned as the result. =item while