develooper Front page | perl.perl6.language | Postings from June 2006

[svn:perl6-synopsis] r9536 - doc/trunk/design/syn

Thread Next
From:
audreyt
Date:
June 10, 2006 20:03
Subject:
[svn:perl6-synopsis] r9536 - doc/trunk/design/syn
Message ID:
20060611030245.A5186CBF2B@x12.develooper.com
Author: audreyt
Date: Sat Jun 10 20:02:44 2006
New Revision: 9536

Modified:
   doc/trunk/design/syn/S03.pod

Log:
* S03: allow post-assignment forms to be SIMPLE:
    $x[$y + $z]     # simple scalar
    $x[$y += $z]    # simple scalar, too


Modified: doc/trunk/design/syn/S03.pod
==============================================================================
--- doc/trunk/design/syn/S03.pod	(original)
+++ doc/trunk/design/syn/S03.pod	Sat Jun 10 20:02:44 2006
@@ -147,8 +147,9 @@
 precedence levels autoincrement, exponentiation, symbolic unary,
 multiplicative, and additive; but these are limited to standard
 operators that are known to return numbers, strings, or booleans.
-(Operators that imply list operations are excluded: C<$>, C<@>,
-and C<xx>, for instance.  Hyper operators are also excluded.)
+(Operators that imply list operations are excluded: C<@>, C<%>,
+and C<xx>, for instance.  Hyper operators are also excluded, but
+post-assigment forms such as C<SIMPLE += SIMPLE> is allowed.)
 
 All other forms imply list assignment, and will evaluate both sides
 of the assignment in list context (eventually).   However, this is

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About