@@ -113,7 +113,7 @@ descriptions are here; special topics are covered afterwards.
113
113
=head2 Term precedence
114
114
115
115
This isn't really a precedence level, but it's in here because no operator
116
- can have tighter precedence than a term. See S02 for longer descriptions of
116
+ can have tighter precedence than a term. See L< S02> for longer descriptions of
117
117
various terms. Here are some examples.
118
118
119
119
=over
@@ -314,7 +314,7 @@ for subscripts. Since these are the tightest standard operator,
314
314
you can often think of a series of method calls as a single term that
315
315
merely expresses a complicated name.
316
316
317
- See S12 for more discussion of single dispatch method calls.
317
+ See L< S12> for more discussion of single dispatch method calls.
318
318
319
319
=over
320
320
@@ -409,7 +409,7 @@ behavior unless some explicit sequencing operator is interposed.
409
409
See L</Sequence points>.
410
410
411
411
As with all postfix operators in Perl 6, no space is allowed between
412
- a term and its postfix. See S02 for why, and for how to work around the
412
+ a term and its postfix. See L< S02> for why, and for how to work around the
413
413
restriction with an "unspace".
414
414
415
415
As mutating methods, all these operators dispatch to the type of
@@ -2800,7 +2800,7 @@ This also includes any operator that would look like something
2800
2800
with a special meaning if used after the method-calling dot. For example,
2801
2801
if you defined a C<< prefix:<=> >>, and you wanted to write it using
2802
2802
the method-call syntax instead of C<=$object>, the parser would take
2803
- C<$object.=> as the mutation syntax (see S12, "Mutating methods").
2803
+ C<$object.=> as the mutation syntax (see L< S12> , "Mutating methods").
2804
2804
Writing C<$object.'='> will call your prefix operator.
2805
2805
2806
2806
=item *
@@ -2885,9 +2885,9 @@ The unary backslash operator is not really an operator, but a special noun form.
2885
2885
It "captures" its argument or arguments, and returns an
2886
2886
object representing those arguments. You can I<dereference> this object
2887
2887
in several ways to retrieve different parts of the arguments; see the
2888
- definition of C<Capture> in S02 for details. (No whitespace is allowed
2888
+ definition of C<Capture> in L< S02> for details. (No whitespace is allowed
2889
2889
after the backslash because that would instead start an "unspace", that is,
2890
- an escaped sequence of whitespace or comments. See S02 for details.
2890
+ an escaped sequence of whitespace or comments. See L< S02> for details.
2891
2891
However, oddly enough, because of that unspace rule, saying C<\\ $foo>
2892
2892
turns out to be equivalent to C<\$foo>.)
2893
2893
@@ -3481,7 +3481,7 @@ integers are assumed to represent points on the real number line:
3481
3481
1.5 ~~ 1^..^2 # true, equivalent to 1 < 1.5 < 2
3482
3482
2.1 ~~ 1..2 # false, equivalent to 1 <= 2.1 <= 2
3483
3483
3484
- If a C<*> (see the "Whatever" type in S02) occurs on the right side
3484
+ If a C<*> (see the "Whatever" type in L< S02> ) occurs on the right side
3485
3485
of a range, it is taken to mean "positive infinity" in whatever
3486
3486
typespace the range is operating, as inferred from the left operand.
3487
3487
A C<*> on the left means "negative infinity" for types that support
@@ -3721,7 +3721,7 @@ C<Buf> role may be a parametric type that allows you to instantiate
3721
3721
buffers with various known encodings. In the absence of such typing
3722
3722
information, you may still do pattern matching against the buffer, but
3723
3723
(apart from assuming the lowest 7 bits represent ASCII) any attempt
3724
- to treat the buffer as other than a sequence integers is erroneous,
3724
+ to treat the buffer as other than a sequence of integers is erroneous,
3725
3725
and warnings may be generously issued.
3726
3726
3727
3727
Matching against a C<Grammar> treats the grammar as a typename,
@@ -3752,8 +3752,8 @@ cannot be specified that way.)
3752
3752
3753
3753
There is no pattern matching defined for the C<Any> pattern, so if you
3754
3754
find yourself in the situation of wanting a reversed smartmatch test
3755
- with an C<Any> on the right, you can almost always get it by explicit
3756
- call to the underlying C<ACCEPTS> method using $_ as the pattern.
3755
+ with an C<Any> on the right, you can almost always get it by an explicit
3756
+ call to the underlying C<ACCEPTS> method using C<$_> as the pattern.
3757
3757
For example:
3758
3758
3759
3759
$_ X Type of Match Wanted What to use on the right
@@ -3765,7 +3765,7 @@ For example:
3765
3765
etc.
3766
3766
3767
3767
Similar tricks will allow you to bend the default matching rules for
3768
- composite objects as long as you start with a dotted method on $_ :
3768
+ composite objects as long as you start with a dotted method on C<$_> :
3769
3769
3770
3770
given $somethingordered {
3771
3771
when .values.'[<=]' { say "increasing" }
@@ -3817,7 +3817,7 @@ Various proposed-but-deprecated smartmatch behaviors may be easily
3817
3817
(Note that the C<.cat> method and the C<Cat> type coercion both take a
3818
3818
single object, unlike the C<cat> function which, as a list operator,
3819
3819
takes a syntactic list (or multilist) and flattens it. All of these
3820
- return a Cat object, however.)
3820
+ return a C< Cat> object, however.)
3821
3821
3822
3822
Boolean expressions are those known to return a boolean value, such
3823
3823
as comparisons, or the unary C<?> operator. They may reference C<$_>
@@ -3977,7 +3977,7 @@ or with leftward feeds as:
3977
3977
<== grep { /^ \d+ $/ }
3978
3978
<== @data;
3979
3979
3980
- Either form more clearly indicates the flow of data. See S06 for
3980
+ Either form more clearly indicates the flow of data. See L< S06> for
3981
3981
more of the (less-than-obvious) details on these two operators.
3982
3982
3983
3983
=head1 Meta operators
@@ -4384,12 +4384,12 @@ for instance, if you say:
4384
4384
4385
4385
%outer »+» %inner;
4386
4386
4387
- only the %inner keys that already exist in %outer will occur in the result.
4387
+ only the C< %inner> keys that already exist in C< %outer> will occur in the result.
4388
4388
Note, however, that you want
4389
4389
4390
4390
%outer »+=« %inner;
4391
4391
4392
- in order to pass accumulated statistics up a tree, assuming you want %outer
4392
+ in order to pass accumulated statistics up a tree, assuming you want C< %outer>
4393
4393
to have the union of keys.
4394
4394
4395
4395
Unary hash hypers and binary hypers that have only one hash operand
@@ -4406,8 +4406,8 @@ is short for something like:
4406
4406
4407
4407
@array[0..^@array], @array[*-1] xx *
4408
4408
4409
- Note that hypers promise that you don't care what order the processing
4410
- happens in , only that the resulting structure ends up in a form consistent
4409
+ Note that hypers promise that you don't care in what order the processing
4410
+ happens, only that the resulting structure ends up in a form consistent
4411
4411
with the inputs. There is no promise from the system that the operation
4412
4412
I<will> be parallelized. Effective parallelization requires some means
4413
4413
of partitioning the work without doing more extra work than you save.
@@ -4896,7 +4896,7 @@ to include:
4896
4896
state $foo # persistent lexical (cloned with closures)
4897
4897
4898
4898
Variable declarators such as C<my> now take a I<signature> as their
4899
- argument. (The syntax of function signatures is described more fully in S06.)
4899
+ argument. (The syntax of function signatures is described more fully in L< S06> .)
4900
4900
4901
4901
The parentheses around the signature may be omitted for a
4902
4902
simple declaration that declares a single variable, along with its
@@ -4973,7 +4973,7 @@ each variable:
4973
4973
my Dog ($b, $c);
4974
4974
my (Dog $b, Dog $c); # same thing
4975
4975
4976
- [XXX the following probably belongs in S06.]
4976
+ [XXX the following probably belongs in L< S06> .]
4977
4977
The syntax for constructing a C<Signature> object when the parser isn't already
4978
4978
expecting one is:
4979
4979
@@ -5015,7 +5015,7 @@ are bound C<rw> by default rather than C<readonly>. See Binding above.
5015
5015
5016
5016
Note that C<temp> and C<let> are I<not> variable declarators, because
5017
5017
their effects only take place at runtime. Therefore, they take an ordinary
5018
- lvalue object as their argument. See S04 for more details.
5018
+ lvalue object as their argument. See L< S04> for more details.
5019
5019
5020
5020
There are a number of other declarators that are not variable
5021
5021
declarators. These include both type declarators:
@@ -5217,7 +5217,7 @@ constructs:
5217
5217
while $i < 10 { $i++ }
5218
5218
5219
5219
It is, however, still possible to align subscripts and other postfix
5220
- operators by explicitly using the I<unspace> syntax (see S02):
5220
+ operators by explicitly using the I<unspace> syntax (see L< S02> ):
5221
5221
5222
5222
%squirrels{'fluffy'} = Squirrel.new;
5223
5223
%monsters.{'cookie'} = Monster.new;
0 commit comments