Author: larry
Date: Mon May 15 22:30:10 2006
New Revision: 9260
Modified:
doc/trunk/design/syn/S02.pod
doc/trunk/design/syn/S03.pod
Log:
missing dot-postfix falls back to corresponding prefix operator
Modified: doc/trunk/design/syn/S02.pod
==============================================================================
--- doc/trunk/design/syn/S02.pod (original)
+++ doc/trunk/design/syn/S02.pod Mon May 15 22:30:10 2006
@@ -12,9 +12,9 @@
Maintainer: Larry Wall <[EMAIL PROTECTED]>
Date: 10 Aug 2004
- Last Modified: 14 May 2006
+ Last Modified: 15 May 2006
Number: 2
- Version: 41
+ Version: 42
This document summarizes Apocalypse 2, which covers small-scale
lexical items and typological issues. (These Synopses also contain
@@ -2043,7 +2043,7 @@
term:<...> $x = {...}
quote:<qX> qX/foo/
- prefix:<+> +$x
+ prefix:<!> !$x (and $x.! if no
postfix:<!>)
infix:<+> $x + $y
postfix:<++> $x++
circumfix:<[ ]> [ @x ]
Modified: doc/trunk/design/syn/S03.pod
==============================================================================
--- doc/trunk/design/syn/S03.pod (original)
+++ doc/trunk/design/syn/S03.pod Mon May 15 22:30:10 2006
@@ -14,7 +14,7 @@
Date: 8 Mar 2004
Last Modified: 15 May 2006
Number: 3
- Version: 32
+ Version: 33
=head1 Changes to existing operators
@@ -30,7 +30,10 @@
=item * All postfix operators that do not start with a dot also have
an alternate form that does. (The converse does not hold--just because
-you can write C<x().foo> doesn't mean you can write C<x()foo>.)
+you can write C<x().foo> doesn't mean you can write C<x()foo>.) In the
+absence of a postfix interpretation, the dot form will call the corresponding
+prefix operator instead. So C<x().!> will call C<!x()> unless someone
+defines a postfix C<!> operator.
=item * Unary C<~> now imposes a string (C<Str>) context on its
argument, and C<+> imposes a numeric (C<Num>) context (as opposed
@@ -911,7 +914,7 @@
method postfix . .+ .? .* .() .[] .{} .«» .:: .=
autoincrement ++ --
exponentiation **
- symbolic unary ! + - ~ ? $ @ % & * ** +^ ~^ ?^ \ ^ =
+ symbolic unary ! + - ~ ? $ @ % & +^ ~^ ?^ \ ^ =
multiplicative * / % x xx +& +< +> ~& ~< ~>
additive + - ~ +| +^ ~| ~^
junctive and (all) &