Documentation for routine hides
assembled from the following pages:
Language documentation: Type system §
From Type system
(Type system) trait hides §
The trait hides
provides inheritance without being subject to re-dispatching.
hides A ; B.new.m; # No output B.new.n; # OUTPUT: «i am hidden»
The trait is hidden
allows a class to hide itself from re-dispatching.
is hidden is A B.new.m; # No output B.new.n; # OUTPUT: «i am hidden»
Classes declared with is hidden
also generate slightly different method signatures. To facilitate re-dispatch, typical methods are automatically provided with an extra *%_
parameter that captures extra named arguments. Because classes declared with is hidden
don't participate in re-dispatch, their methods don't receive this extra parameter.
Role: Metamodel::MultipleInheritance §
From Metamodel::MultipleInheritance
(Metamodel::MultipleInheritance) method hides §
method hides()
Returns a list of all hidden parent classes.