develooper Front page | perl.perl6.language | Postings from March 2009

r25880 - docs/Perl6/Spec

From:
pugs-commits
Date:
March 17, 2009 18:28
Subject:
r25880 - docs/Perl6/Spec
Message ID:
20090318012840.25842.qmail@feather.perl6.nl
Author: lwall
Date: 2009-03-18 02:28:39 +0100 (Wed, 18 Mar 2009)
New Revision: 25880

Modified:
   docs/Perl6/Spec/S03-operators.pod
   docs/Perl6/Spec/S04-control.pod
Log:
create more semantic distance between terms and 0-ary functions


Modified: docs/Perl6/Spec/S03-operators.pod
===================================================================
--- docs/Perl6/Spec/S03-operators.pod	2009-03-18 01:03:18 UTC (rev 25879)
+++ docs/Perl6/Spec/S03-operators.pod	2009-03-18 01:28:39 UTC (rev 25880)
@@ -12,9 +12,9 @@
 
   Maintainer: Larry Wall <larry@wall.org>
   Date: 8 Mar 2004
-  Last Modified: 12 Mar 2009
+  Last Modified: 17 Mar 2009
   Number: 3
-  Version: 158
+  Version: 159
 
 =head1 Overview
 
@@ -303,14 +303,6 @@
 its left, so it binds tighter than comma on the left but looser than
 comma on the right--see List prefix precedence below.
 
-=item *
-
-0-ary functions
-
-    self
-    undef
-    rand
-
 =back
 
 =head2 Method postfix precedence
@@ -1009,7 +1001,7 @@
 to C<$_> in PerlĀ 6.
 
 There is no unary C<rand> function in Perl 6, though there is a C<.rand>
-method call and a 0-ary C<rand> term.
+method call and an argumentless C<rand> term.
 
 =over
 
@@ -1746,7 +1738,7 @@
 
 The function can be 0-ary as well:
 
-    () ... &rand		# list of random numbers
+    () ... { rand }		# list of random numbers
 
 The function may also be slurpy (*-ary), in which case all the
 preceding values are passed in (which means they must all be cached
@@ -3627,7 +3619,7 @@
 then you shouldn't worry about it, because unlike previous versions,
 PerlĀ 6 never guesses whether the next thing is a term or operator.
 In this case it is always expecting a term unless C<foo> is predeclared
-to be a 0-ary sub.]
+to be a type or value name.]
 
 The upgrade never happens on the "blunt" end of a hyper.  If you write
 

Modified: docs/Perl6/Spec/S04-control.pod
===================================================================
--- docs/Perl6/Spec/S04-control.pod	2009-03-18 01:03:18 UTC (rev 25879)
+++ docs/Perl6/Spec/S04-control.pod	2009-03-18 01:28:39 UTC (rev 25880)
@@ -12,9 +12,9 @@
 
   Maintainer: Larry Wall <larry@wall.org>
   Date: 19 Aug 2004
-  Last Modified: 4 Mar 2009
+  Last Modified: 17 Mar 2009
   Number: 4
-  Version: 73
+  Version: 74
 
 This document summarizes Apocalypse 4, which covers the block and
 statement syntax of Perl.
@@ -95,7 +95,7 @@
 a variable in the current package.
 
 The new C<constant> declarator introduces a lexically scoped name
-for a compile-time constant, either a variable or a 0-ary sub, which
+for a compile-time constant, either a variable or named value, which
 may be initialized with a pseudo-assignment:
 
     constant Num $pi = 3;




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