Skip to content

Commit

Permalink
Adds an example of direct use refs #1306
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Apr 13, 2019
1 parent 8a35386 commit e911e2e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/Type/Metamodel/CurriedRoleHOW.pod6
Expand Up @@ -29,6 +29,11 @@ instantiation of it. This meta-object represents those "partial types"
as both a way to curry on your way to a full specialization, but also
as a way to do type-checking or punning.
You can use C<new_type> as in most of the Metamodel namespace, to create new
types:
my $a = Metamodel::CurriedRoleHOW.new_type("zipi");
I<Note>: As most of the Metamodel classes, this class is here mainly for
illustration purposes and it's not intended for the final user.
Expand Down

0 comments on commit e911e2e

Please sign in to comment.