File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ to it (or even themselves) and we can apply traits to objects at runtime.
61
61
&trait_mod:<is>(&bar, :foo);
62
62
# OUTPUT « is foo calledis foo called »
63
63
64
+ = head2 trait is default (Sub class)
65
+
64
66
There is a special trait for C < Sub > s called C < is default > . This trait is
65
67
designed as a way to disambiguate C < multi > function calls that would normally
66
68
throw an error because Rakudo would not know which one to use. This means that
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ introspect and manipulate variables.
21
21
22
22
Returns the name of the variable, including the sigil.
23
23
24
- = head2 trait is default
24
+ = head2 trait is default (Variables)
25
25
26
26
multi sub trait_mod:<is>(Variable:D, :$default!)
27
27
You can’t perform that action at this time.
0 commit comments