On Mon Jan 11 05:46:19 2016, lloyd.fo...@gmail.com wrote:
> role Foo { has $.foo; }; Foo.^attributes[0].package.^name.say #->$?CLASS
Just to note that this behavior is intentional rather than accidental (or at
least, *I* intended it :-)). Roles undergo generic instantiation at the point
of being
To add to the confusion:
role Foo { method meth { } }; class Bar does Foo { };
Bar.^find_method("meth").package.say
(Foo)
so methods behave as I expect but attributes don't.
On Tue, Jan 12, 2016 at 2:00 AM Lloyd Fournier
wrote:
> Since timtimo++ saw this ticket and tried to ping me on IRC I'
Since timtimo++ saw this ticket and tried to ping me on IRC I'm going to
explain why I wanted this to work. See:
https://github.com/LLFourn/p6-AttrX-InitArg/
And in particular this commit.
https://github.com/LLFourn/p6-AttrX-InitArg/commit/ffd5e962020d85595b2c2edd08f390044899
I was using Attr
# New Ticket Created by Lloyd Fournier
# Please include the string: [perl #127236]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=127236 >
role Foo { has $.foo; }; Foo.^attributes[0].package.^name.say #->$?CLASS