You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/Language/objects.pod6
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -835,7 +835,7 @@ role.
835
835
836
836
=head2Inheritance
837
837
838
-
Roles cannot inherit from classes, but they may carry classes, causing
838
+
Roles cannot inherit from classes, but they may I<carry> classes, causing
839
839
any class which does that role to inherit from the carried classes.
840
840
So if you write:
841
841
@@ -848,7 +848,7 @@ So if you write:
848
848
then C<X::Ouch> will inherit directly from Exception, as we can see above
849
849
by listing its parents.
850
850
851
-
As they do not use inheritance, roles are not part of the class hierarchy.
851
+
As they do not use what can properly be called inheritance, roles are not part of the class hierarchy.
852
852
Roles are listed with the C<.^roles> meta-method instead, which uses C<transitive> as flag for including all levels or just the first one. Despite this, a
853
853
class or instance may still be tested with smartmatches or type constraints
0 commit comments