does Metamodel::Namingdoes Metamodel::Documentingdoes Metamodel::Versioningdoes Metamodel::MethodContainerdoes Metamodel::PrivateMethodContainerdoes Metamodel::MultiMethodContainerdoes Metamodel::AttributeContainerdoes Metamodel::RoleContainerdoes Metamodel::MultipleInheritancedoes Metamodel::Stashingdoes Metamodel::TypePretensedoes Metamodel::RolePunningdoes Metamodel::ArrayType
Warning: this class is part of the Rakudo implementation, and is not a part of the language specification.
Metamodel::ParametricRoleHOW represents a non-instantiated, possibly parameterized, role:
([::T] ).HOW.say;# OUTPUT: «Perl6::Metamodel::ParametricRoleHOW.new␤»( ).HOW.say; # OUTPUT: «Perl6::Metamodel::ParametricRoleHOW.new␤»
.new_type will create a new object of this class.
my \zipi := Metamodel::ParametricRoleHOW.new_type( name => "zape", group => "Zape");say zipi.HOW; # OUTPUT: «Perl6::Metamodel::ParametricRoleHOW.new␤»
group argument will need to be used to integrate it in a parametric role group, which will need to be defined in advance.
Note: As most of the
Metamodel classes, this one is here mainly for illustration purposes and it's not intended for the final user to instantiate, unless their intention is really to create a parametric role group.