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

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

From:
audreyt
Date:
June 10, 2006 19:51
Subject:
[svn:perl6-synopsis] r9535 - doc/trunk/design/syn
Message ID:
20060611025123.7D435CBF2B@x12.develooper.com
Author: audreyt
Date: Sat Jun 10 19:51:22 2006
New Revision: 9535

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

Log:
* S03: the SIMPLE forms can use a more robust recursive definition.
       also, include $$a and $::('$a') as obviously simple as well.

Modified: doc/trunk/design/syn/S03.pod
==============================================================================
--- doc/trunk/design/syn/S03.pod	(original)
+++ doc/trunk/design/syn/S03.pod	Sat Jun 10 19:51:22 2006
@@ -12,9 +12,9 @@
 
   Maintainer: Larry Wall <larry@wall.org>
   Date: 8 Mar 2004
-  Last Modified: 4 Jun 2006
+  Last Modified: 11 Jun 2006
   Number: 3
-  Version: 37
+  Version: 38
 
 =head1 Changes to existing operators
 
@@ -114,15 +114,18 @@
 still works fine.  The distinction between scalar and list
 assignment is similar to the way Perl 5 does it, but has to be a
 little different because we can no longer decide on the basis of
-the sigil.  The following forms are defined as "obviously simple",
+the sigil.  The following forms are defined as "simple lvalues",
 and imply scalar assignment:
 
     $a		# simple scalar variable
+    $(ANY)      # scalar dereference (including $$a)
+    $::(ANY)    # symbolic scalar dereference
     ANY[SIMPLE]	# single simple subscript
     ANY{SIMPLE}	# single simple subscript
     ANY<x>	# single literal subscript
 
-Where SIMPLE is defined as 
+Where SIMPLE is (recursively) defined as one of the forms above,
+plus the following forms:
 
     123		# single literal
     'x'		# single literal
@@ -133,8 +136,6 @@
     ~TERM	# any single term coerced to string
     ?TERM	# any single term coerced to boolean
     !TERM	# any single term coerced to boolean
-    ANY[SIMPLE]	# any of these simples used as subscript recursively
-    ANY{SIMPLE}	# any of these simples used as subscript recursively
 
 We also include:
 



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