6
6
7
7
= head1 Abstract Class
8
8
9
- The generic Computer Science term "abstract L < class|Class > " defines the
10
- L < interface|Interface > or L < API > of a class. In Perl 6, this is
11
- implemented using L < roles|Role > with L < stubbed|Stub > methods.
9
+ The generic Computer Science term "abstract L < class|# Class > " defines the
10
+ L < interface|# Interface > or L < # API> of a class. In Perl 6, this is
11
+ implemented using L < roles|# Role > with L < stubbed|# Stub > methods.
12
12
13
13
role Canine {
14
14
method bark { ... } # the ... indicates a stub
@@ -48,11 +48,11 @@ followed by a name (for the key):
48
48
49
49
:20seconds # same as seconds => 20
50
50
51
- Also see L < Colon Pair and Colon List > .
51
+ Also see L < # Colon Pair and Colon List> .
52
52
53
53
= head1 Adverbial Pair
54
54
55
- A generalized form of L < / pair notation> . They all start with the colon, like:
55
+ A generalized form of C < pair notation > . They all start with the colon, like:
56
56
57
57
adverbial pair | pair notation
58
58
================|==============
@@ -63,7 +63,7 @@ A generalized form of L</pair notation>. They all start with the colon, like:
63
63
:foo | foo => True
64
64
:!foo | foo => False
65
65
66
- Also see L < / Adverb> and L < / Colon Pair and Colon List> .
66
+ Also see L < # Adverb> and L < # Colon Pair and Colon List> .
67
67
68
68
= head1 Anonymous
69
69
@@ -86,33 +86,33 @@ that name:
86
86
87
87
= head1 Any
88
88
89
- The L < class|Class > from which most things derive (inherit), except for
90
- L < junctions|Junction > . C < Any > itself derives from L < Mu > .
89
+ The L < class|# Class > from which most things derive (inherit), except for
90
+ L < junctions|# Junction > . C < Any > itself derives from L < # Mu> .
91
91
92
92
= head1 any()
93
93
94
- A function generating a L < junction|Junction > with "or" semantics (aka,
95
- L < True > if any of its values are C < True > .
94
+ A function generating a L < junction|# Junction > with "or" semantics (aka,
95
+ L < # True> if any of its values are C < True > .
96
96
97
97
= head1 API
98
98
99
99
Application Programming Interface. Ideally, someone using your system or
100
100
library should be able to do so with knowledge only of the API, but not
101
101
necessarily knowing anything about the internals or implementation.
102
102
103
- See also L < Abstract Class > .
103
+ See also L < # Abstract Class> .
104
104
105
105
= head1 Apocalypse
106
106
107
- A document originally written by L < TimToady > , in which he processed the
107
+ A document originally written by L < # TimToady> , in which he processed the
108
108
initial barrage of RFC's that came out of the Perl community. Now only kept
109
- as an historical document for reference. See also L < Exegesis > and
110
- L < Synopsis > .
109
+ as an historical document for reference. See also L < # Exegesis> and
110
+ L < # Synopsis> .
111
111
112
112
= head1 Argument
113
113
114
- A value that you pass on to a L < subroutine|Subroutine > , L < method|Method >
115
- or a L < callable block|Callable > . As opposed to the L < Parameter > that is
114
+ A value that you pass on to a L < subroutine|# Subroutine > , L < method|# Method >
115
+ or a L < callable block|# Callable > . As opposed to the L < # Parameter> that is
116
116
specified in the definition of a subroutine/method/callable block.
117
117
118
118
sub foo($bar) { say $bar } # $bar is a parameter
@@ -124,32 +124,32 @@ L<Array|/type/Array> is a subclass of L<List|/type/List> that is mutable.
124
124
This means you can e.g. C < .push > and C < .pop > on an array, whereas you cannot
125
125
do that on a list. This is separate from the type of elements in the array:
126
126
if they are containers, then they are also mutable, but they don't have to
127
- be. Arrays are typically recognizable by the L < @ > L < sigil|Sigil > .
127
+ be. Arrays are typically recognizable by the L < # @> L < sigil|# Sigil > .
128
128
129
129
my @array = 1,2,3;
130
130
say @a; # [1 2 3]
131
131
132
132
= head1 Arity
133
133
134
- The number of L < positional|Positional > operands expected by an
135
- L < operator|Operator > , L < subroutine|Subroutine > , L < method|Method > or
136
- L < callable block|Callable > .
134
+ The number of L < positional|# Positional > operands expected by an
135
+ L < operator|# Operator > , L < subroutine|# Subroutine > , L < method|# Method > or
136
+ L < callable block|# Callable > .
137
137
138
138
sub infix:<+>(Foo $a, Foo $b) { $a.Int + $b.Int } # arity of "+" is 2
139
139
sub frobnicate($x) { ... } # arity of 1
140
140
sub the-answer() { 42 } # arity of 0
141
141
-> $key, $value { ... } # arity of 2
142
142
143
143
The arity of a C < Callable > is one of the main selectors in
144
- L < multi-dispatch|Multi-Dispatch > .
144
+ L < multi-dispatch|# Multi-Dispatch > .
145
145
146
146
= head1 Attribute
147
147
148
148
A per-object storage slot. Other programming languages refer to this as
149
- L < Field > , L < Member > , L < Slot > or L < Property > .
149
+ C < Field > , C < Member > , C < Slot > or C < Property > .
150
150
151
- In Perl 6, attributes are defined with the L < has > keyword inside a
152
- L < class|Class > :
151
+ In Perl 6, attributes are defined with the L < # has> keyword inside a
152
+ L < class|# Class > :
153
153
154
154
class Dog {
155
155
has $.name; # public attribute "name"
@@ -213,7 +213,7 @@ with the appropriate sigil:
213
213
:%mapper # same as mapper => %mapper
214
214
:&test # same as test => &test
215
215
216
- See also L < Adverb > .
216
+ See also L < # Adverb> .
217
217
218
218
= head1 Constraint
219
219
@@ -229,7 +229,7 @@ The C<Str> in the above example is also a constraint, but is usually
229
229
referred to as a "type constraint."
230
230
231
231
Note that you can elso differentiate candidates in a
232
- L < multi-dispatch|Multi-Dispatch > by using a different constraint:
232
+ L < multi-dispatch|# Multi-Dispatch > by using a different constraint:
233
233
234
234
multi sub abbreviate(Str $thing where { .chars >= 10 }) {
235
235
"$thing.substr(0,10)..."
@@ -241,7 +241,7 @@ L<multi-dispatch|Multi-Dispatch> by using a different constraint:
241
241
242
242
= head1 Field
243
243
244
- See L < Attribute > .
244
+ See L < # Attribute> .
245
245
246
246
= head1 Instance
247
247
@@ -278,7 +278,7 @@ C<#perl6> channel of C<irc.freenode.org>.
278
278
279
279
= head1 IRC Lingo
280
280
281
- The following terms are often used on the Perl 6 related L < IRC > channels:
281
+ The following terms are often used on the Perl 6 related L < # IRC> channels:
282
282
283
283
= head2 AFAICS
284
284
@@ -307,20 +307,20 @@ know, and I don't care.
307
307
308
308
= head2 backlog
309
309
310
- That part of a discussion on an L < IRC > channel that you've missed. If it
310
+ That part of a discussion on an L < # IRC> channel that you've missed. If it
311
311
is not or no longer available in your IRC client, you can go to sites such
312
312
as L < http://irc.perl6.org > to see what has been logged for you.
313
313
314
314
= head2 BIAB
315
315
316
- Back In A Bit. As in, only L < afk|AFK > for a little while.
316
+ Back In A Bit. As in, only L < afk|# AFK > for a little while.
317
317
318
318
= head2 Bot
319
319
320
- A program that does automatic tasks on one or more L < IRC > channels by
320
+ A program that does automatic tasks on one or more L < # IRC> channels by
321
321
acting like a regular user (as far as the IRC server is concerned) and
322
322
performing some tasks that may involve answering to users requests.
323
- Examples are L < camelia > , L < dalek > and L < yoleaux > .
323
+ Examples are L < # camelia> , L < # dalek> and L < # yoleaux> .
324
324
325
325
= head2 BRB
326
326
@@ -409,8 +409,8 @@ No Such Thing
409
409
410
410
= head2 Opt
411
411
412
- Short for "optimization", usually in either the context of L < spesh > or
413
- L < JIT > .
412
+ Short for "optimization", usually in either the context of L < # spesh> or
413
+ L < # JIT> .
414
414
415
415
= head2 PB
416
416
@@ -441,11 +441,11 @@ Real Soon Now
441
441
= head2 RT
442
442
443
443
Request Tracker (L < http://rt.perl.org/ > ). The place where all the bugs
444
- related to L < Rakudo > live.
444
+ related to L < # Rakudo> live.
445
445
446
446
= head2 TIMTOWTDI
447
447
448
- An alternative form of L < TMTOWTDI > , explicitly including the "is" from
448
+ An alternative form of L < # TMTOWTDI> , explicitly including the "is" from
449
449
the contraction "There's".
450
450
451
451
= head2 TMI
@@ -474,7 +474,7 @@ Wikipedia
474
474
475
475
= head2 WW
476
476
477
- Short for C < wrong window > . When on L < IRC > , someone types something in a
477
+ Short for C < wrong window > . When on L < # IRC> , someone types something in a
478
478
channel that was intended for another channel, or for a private message.
479
479
480
480
= head1 Invocant
@@ -523,7 +523,7 @@ Examples of things that are not lvalues:
523
523
sub f { }; f(); # "normal" subs are not writable
524
524
sub f($x) { $x = 3 }; # error - parameters are read-only by default
525
525
526
- These are typically called L < rvalues|rvalue > .
526
+ These are typically called L < rvalues|# rvalue > .
527
527
528
528
= head1 Mainline
529
529
@@ -542,25 +542,25 @@ pre-compiled file).
542
542
543
543
= head1 Member
544
544
545
- See L < Attribute > .
545
+ See L < # Attribute> .
546
546
547
547
= head1 Parameter
548
548
549
549
L < Parameter|/type/Parameter > is a class to define parameters to
550
- L < subroutines|Subroutine > , L < methods|Method > and a L < callable blocks|Callable > .
551
- As opposed to the L < arguments|Argument > you specify when calling a
552
- subroutine/method/callable block.
550
+ L < subroutines|# Subroutine > , L < methods|# Method > and a
551
+ L < callable blocks|#Callable > . As opposed to the L < arguments|# Argument >
552
+ you specify when calling a subroutine/method/callable block.
553
553
554
554
sub foo($bar) { say $bar } # $bar is a parameter
555
555
foo(42); # 42 is an argument
556
556
557
557
= head1 Property
558
558
559
- See L < Attribute > .
559
+ See L < # Attribute> .
560
560
561
561
= head1 Slot
562
562
563
- See L < Attribute > .
563
+ See L < # Attribute> .
564
564
565
565
= head1 Slurpy
566
566
0 commit comments