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

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

From:
pmichaud
Date:
April 20, 2006 11:49
Subject:
[svn:perl6-synopsis] r8886 - doc/trunk/design/syn
Message ID:
20060420184829.EDE6ECB9BC@x12.develooper.com
Author: pmichaud
Date: Thu Apr 20 11:48:29 2006
New Revision: 8886

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

Log:
* Fixed "long dot" constructs to reflect new syntax.


Modified: doc/trunk/design/syn/S12.pod
==============================================================================
--- doc/trunk/design/syn/S12.pod	(original)
+++ doc/trunk/design/syn/S12.pod	Thu Apr 20 11:48:29 2006
@@ -221,7 +221,7 @@
     .doit()	# okay, no arguments
     .doit ()	# ILLEGAL (two terms in a row)
     .doit.()	# okay, no arguments, same as .doit()
-    .doit .()	# okay, no arguments, same as .doit()
+    .doit. .()	# okay, no arguments, same as .doit() (long dot form)
 
 However, you can turn any of the legal forms above into a list
 operator by appending a colon:
@@ -230,7 +230,7 @@
     .doit(1): 2,3	# okay, one argument plus list
     .doit (): 1,2,3	# ILLEGAL (two terms in a row)
     .doit.(1): 2,3	# okay, same as .doit(1,2,3)
-    .doit .(1,2): 3	# okay, same as .doit(1,2,3)
+    .doit. .(1,2): 3	# okay, same as .doit(1,2,3)
 
 In particular, this allows us to pass a closure in addition to the
 "normal" arguments:



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