Timothy S. Nelson wrote:
> On Wed, 16 Sep 2009, Carl Mäsak wrote:
> 
>> Tim (>), Raphael (>>):
>>>> Some XML related stuff:
>>>>
>>>> XML parser:
>>>> http://github.com/fperrad/xml/
>>>>
>>>> Tree manipulation:
>>>> http://github.com/wayland/Tree/tree/master
>>>
>>> Thanks. Any reason they're not known to proto?
>>
>> The latter I wasn't really aware of. It's now added to the list, and
>> wayland has been given a proto commit bit.
> 
>       It doesn't work, though.  That's probably one reason it wasn't in 
> proto :).  Until either we get role stubs (role foo {...}) or I figure a way 
> to work around that, 

If you want to stub role foo, you can simply write

role foo[Int $a, Int $b, Int $c] { }

or with some other parametrization signature that's never used anywhere.
Role declarations are "multi" just like multi subs, and writing down one
multi role that's never used makes the name known to Rakudo.

That's a bit of an ugly hack, but it worked for me so far.

Cheers,
Moritz

Reply via email to