routine trusts
1 | language documentation Type system |
1.1 | (Type system) trait trusts |
2 | role Metamodel::Trusting |
2.1 | (Metamodel::Trusting) method trusts |
Documentation for routine trusts
assembled from the following types:
language documentation Type system
From Type system
(Type system) trait trusts
To allow one class to access the private methods of another class use the trait trusts
. A forward declaration of the trusted class may be required.
;;;say B.new.change;# OUTPUT: «B.new(a => A.new(foo => 42))»
role Metamodel::Trusting
From Metamodel::Trusting
(Metamodel::Trusting) method trusts
method trusts(Metamodel::Trusting: --> List)
Returns a list of types that the invocant trusts.
;say .^name for A.^trusts; # Int