@@ -8,8 +8,8 @@ Synopsis 3: Operators
8
8
9
9
Created: 8 Mar 2004
10
10
11
- Last Modified: 29 Mar 2015
12
- Version: 285
11
+ Last Modified: 7 Apr 2015
12
+ Version: 286
13
13
14
14
=head1 Overview
15
15
@@ -20,11 +20,11 @@ For a summary of the changes from Perl 5, see L</Changes to Perl 5 operators>.
20
20
Perl 6 has about the same number of precedence levels as Perl 5,
21
21
but they're differently arranged in spots. Here we list the
22
22
levels from "tightest" to "loosest", along with a few examples of
23
- each level:
23
+ each level. (Column 'A' is for "associativity", see following table.)
24
24
25
25
A Level Examples
26
26
= ===== ========
27
- N Terms 42 3.14 "eek" qq["foo"] $x :!verbose @$array
27
+ O Terms 42 3.14 "eek" qq["foo"] $x :!verbose @$array
28
28
L Method postfix .meth .+ .? .* .() .[] .{} .<> .«» .:: .= .^ .:
29
29
N Autoincrement ++ --
30
30
R Exponentiation **
@@ -49,7 +49,7 @@ each level:
49
49
X Loose and and andthen
50
50
X Loose or or xor orelse
51
51
X Sequencer <== ==> <<== ==>>
52
- N Terminator ; {...} unless extra ) ] }
52
+ O Terminator ; {...} unless extra ) ] }
53
53
54
54
Using two C<!> symbols below generically to represent any pair of operators
55
55
that have the same precedence, the associativities specified above
@@ -62,6 +62,7 @@ for binary operators are interpreted as follows:
62
62
N non ILLEGAL
63
63
C chain ($a ! $b) and ($b ! $c)
64
64
X list infix:<!>($a; $b; $c)
65
+ O N/A (not really an operator)
65
66
66
67
For unaries this is interpreted as:
67
68
0 commit comments