5
src/classes/ConcreteRole.pir - methods for the ConcreteRole class
9
A concrete role is a role that has been selected from an abstract role by
10
providing a (possibly empty) set of role parameters. This class for now
11
is primarily just designed to know how to match one of them in a multiple
20
.namespace ['ConcreteRole']
22
.sub 'onload' :anon :init :load
23
.local pmc p6meta, proto
24
p6meta = get_hll_global ['Mu'], '$!P6META'
25
proto = p6meta.'new_class'('ConcreteRole', 'parent'=>'Cool')
28
.sub 'PROTOOVERRIDES' :method
29
.return ('new', 'ACCEPTS')
32
.sub 'ACCEPTS' :method
34
$I0 = isa topic, 'P6role'