develooper Front page | perl.perl6.language | Postings from September 2008

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

From:
larry
Date:
September 10, 2008 12:03
Subject:
[svn:perl6-synopsis] r14582 - doc/trunk/design/syn
Message ID:
20080910190320.F0AE6CB9B0@x12.develooper.com
Author: larry
Date: Wed Sep 10 12:03:19 2008
New Revision: 14582

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

Log:
inconsistent meaning of [,] noticed by moritz++


Modified: doc/trunk/design/syn/S03.pod
==============================================================================
--- doc/trunk/design/syn/S03.pod	(original)
+++ doc/trunk/design/syn/S03.pod	Wed Sep 10 12:03:19 2008
@@ -12,9 +12,9 @@
 
   Maintainer: Larry Wall <larry@wall.org>
   Date: 8 Mar 2004
-  Last Modified: 6 Jun 2008
+  Last Modified: 10 Sep 2008
   Number: 3
-  Version: 138
+  Version: 139
 
 =head1 Overview
 
@@ -3979,11 +3979,11 @@
 
     @foo.push(@bar);
 
-Unlike C<[,]>, C<|> does not flatten its argument, but instead directly
+Unlike C<[,]>, C<|> does not turn its argument into an C<Array>, but instead directly
 converts its argument into a C<Capture>:
 
     my @args = \$x, 1, 2, 3;
-    say [,] @args;  # say($x: 1, 2, 3);
+    say [,] @args;  # say([\$x, 1, 2, 3]);
     say |@args;     # say(\$x, 1, 2, 3);
 
 Because of this, C<|%args> always produces named arguments, and



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