Skip to content

Commit 45d8c16

Browse files
committed
Add operator declarations to Sub.
Actually, they were pretty well covered elsewhere, so it's basically a set of pointers. Closes #1573
1 parent f2303e9 commit 45d8c16

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/Type/Sub.pod6

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ C<$objectioner> will contain the C<can-be-seen> subroutine, even if it has been
4040
declared in another scope; calling it with C<42> will return C<"Really?"> with
4141
the number 42 mixed in, as shown in the last sentence.
4242
43+
=head1 Operators
44+
45+
Operators are also C<Sub>s. Their definition includes
46+
L<the category they belong to|/language/operators#Operator_classification>
47+
and their
48+
L<code, precedence and associativity|/language/functions#Defining_operators>.
49+
The syntax used in their definition is an example of
50+
L<extended identifiers|/language/syntax#Extended_identifiers>.
51+
4352
=head1 Traits
4453
X<|trait_mod (declarator)>
4554

0 commit comments

Comments
 (0)