You are both wrong :P

perl6 -e 'my $R = my role R {}; $R.^add_method("foo",method {}) #works!'

I'm guessing that puns it. Though it's still useful.

On Tue, Jan 12, 2016 at 5:32 AM jn...@jnthn.net via RT <
perl6-bugs-follo...@perl.org> wrote:

> On Tue Jan 05 03:20:59 2016, moritz wrote:
> > On Tue Jan 05 02:54:22 2016, gfldex wrote:
> > > role R {}; R.^add_method('foo', method (){})
> > >
> > > # OUTPUT«Method 'add_method' not found for invocant of class
> > > 'Perl6::Metamodel::ParametricRoleGroupHOW'␤  in block <unit> at
> > > /tmp/ORnhrivIvq line 1␤»
> > >
> > > # that must have worked until shortly before 6.c because at least one
> > > # module in the eco system (Crust) depends on it.
> >
> > If it has worked before, it must have been by accident; roles are by
> > design immutable after they are composed.
>
> What moritz said. Rejecting.
>
>
>

Reply via email to