Front page | perl.perl6.language |
Postings from April 2006
[svn:perl6-synopsis] r8962 - doc/trunk/design/syn
From:
autrijus
Date:
April 26, 2006 10:08
Subject:
[svn:perl6-synopsis] r8962 - doc/trunk/design/syn
Message ID:
20060426170738.0D61BCBA47@x12.develooper.com
Author: autrijus
Date: Wed Apr 26 10:07:38 2006
New Revision: 8962
Modified:
doc/trunk/design/syn/S02.pod
Log:
* S02: bump version from the unicode change; also merge in
azuroth++'s typo fix, as well as paragraph reflow.
Modified: doc/trunk/design/syn/S02.pod
==============================================================================
--- doc/trunk/design/syn/S02.pod (original)
+++ doc/trunk/design/syn/S02.pod Wed Apr 26 10:07:38 2006
@@ -12,9 +12,9 @@
Maintainer: Larry Wall <larry@wall.org>
Date: 10 Aug 2004
- Last Modified: 25 Apr 2006
+ Last Modified: 26 Apr 2006
Number: 2
- Version: 33
+ Version: 34
This document summarizes Apocalypse 2, which covers small-scale
lexical items and typological issues. (These Synopses also contain
@@ -1591,18 +1591,19 @@
the syntax to be inconsistent with that, it is an error of the
inconsistent signature variety.
-If the unrecogized subname is followed by C<< postcircumfix:<( )> >>, it is
-compiled as a provisional function call of the parenthesized form.
+If the unrecognized subroutine name is followed by C<< postcircumfix:<( )> >>,
+it is compiled as a provisional function call of the parenthesized form.
If it is not, it is compiled as a provisional function call of
the list operator form, which may or may not have an argument list.
When in doubt, the attempt is made to parse an argument list. As with
any list operator, an immediate postfix operator means there are no
arguments, whereas anything following whitespace will be interpreted
-as an argument list if possible. It is illegal for a provisional
-subroutine call to be followed by a colon postfix, since such a colon
-is allowed only on an indirect object or a method call in dot form.
-(It is also allowed on a label when a statement is expected.)
-So for any undeclared identifier "C<foo>":
+as an argument list if possible.
+
+It is illegal for a provisional subroutine call to be followed by a
+colon postfix, since such a colon is allowed only on an indirect object,
+or a method call in dot form. (It is also allowed on a label when a
+statement is expected.) So for any undeclared identifier "C<foo>":
foo.bar # foo().bar -- postfix prevents args
foo .bar # foo($_.bar) -- no postfix starts with whitespace
@@ -1636,12 +1637,13 @@
The indirect object colon only ever dominates a simple term, where
"simple" includes classes and variables and parenthesized expressions,
but explicitly not method calls, because the colon will bind to a
-trailing method call in preference. An indirect object that parses
-as more than one token must be placed in parentheses, followed by
-the colon. In short, only an identifier followed by a simple term
-followed by a postfix colon is C<ever> parsed as an indirect object,
-but that form will C<always> be parsed as an indirect object regardless
-of whether the identifier is otherwise declared.
+trailing method call in preference. An indirect object that parses as
+more than one token must be placed in parentheses, followed by the colon.
+
+In short, only an identifier followed by a simple term followed by a
+postfix colon is C<ever> parsed as an indirect object, but that form
+will C<always> be parsed as an indirect object regardless of whether
+the identifier is otherwise declared.
=item *
-
[svn:perl6-synopsis] r8962 - doc/trunk/design/syn
by autrijus