File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -742,8 +742,13 @@ and code reuse within objects.
742
742
743
743
X < |does >
744
744
Roles use the keyword C < role > preceding the name of the role that is
745
- declared. Roles are mixed in using the C < does > keyword preceding the name
746
- of the role that is mixed in.
745
+ declared. Roles are mixed in using the C < does > keyword preceding the name of
746
+ the role that is mixed in.
747
+
748
+ Roles can also be mixed into a class using C < is > . However, the semantics of
749
+ C < is > with a role are quite different from those offered by C < does > . With C < is > ,
750
+ a class is punned from the role, and then inherited from. Thus, there is no
751
+ flattening composition, and none of the safeties which C < does > provides.
747
752
748
753
= begin code
749
754
constant ⲧ = " " xx 4; #Just a ⲧab
You can’t perform that action at this time.
0 commit comments