Skip to content

Commit 8087f17

Browse files
committed
we can use the MOP to add coercers
1 parent 53ef347 commit 8087f17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/Language/typesystem.pod6

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ Turning one type into another is done with coercion methods that have the same
5959
name as the target type. This convention is made mandatory by
6060
L<Signatures|/type/Signature#Coercion_Type>. The source type has to know how to
6161
turn itself into the target type. To allow built-in types to turn themselves into
62-
user defined types use L<augment|/language/variables#The_augment_Declarator>.
62+
user defined types use L<augment|/language/variables#The_augment_Declarator> or
63+
the L<MOP|/language/mop>.
6364
6465
class C {
6566
has $.int;

0 commit comments

Comments
 (0)