> Can I just do:
>
>   role ListOfMessages($attribute_base, $method_base, $display_color) {...}
>
> or what?

PS:

Sorry: I know that for types and what-not I could do

  role ListOfMessages[args]

but I'm wondering about parameters in names.

That is,

  has @:messages;

versus

  has @:errors;

I don't think scads of little C<eval> statements is the answer, but I don't
know if

  has @:${attribute_base};

works, or if there's some sort of higher-level method:

  $this.meta.add_attribute(name => $attribute_base, type => '@', access =>
':')

Hopefully this is clearer.

=Austin

Reply via email to