Re: Roles are fundamentally broken?

2019-01-29 Thread yary
> Yet, have a look at my example with private methods All of the bug reports, code excerts use regular (public) methods. Do you have code to share with !private_methods and/or submethods? I just made an example, will be at the end of this email > If accidentally two roles declare same private met

Re: filever.exe sub?

2019-01-29 Thread ToddAndMargo via perl6-users
On 1/29/19 9:53 PM, ToddAndMargo via perl6-users wrote: Hi All, Windows provides a utility called filever.exe which will tell you the revision of and exe file.  (You can also see this through the gui with properties). Currently I run filever.exe through Wine.  It is cumbersome, especially since

filever.exe sub?

2019-01-29 Thread ToddAndMargo via perl6-users
Hi All, Windows provides a utility called filever.exe which will tell you the revision of and exe file. (You can also see this through the gui with properties). Currently I run filever.exe through Wine. It is cumbersome, especially since Wine floods STDERR. I work around it. Do we have a mod

Re: Roles are fundamentally broken?

2019-01-29 Thread Vadim Belman
The role must not be a class – that's true. Yet, have a look at my example with private methods. If accidentally two roles declare same private method – I either must reject using one of them or resolve the conflict manually... oh, wait, I have no idea of what is that private method is all abo

Re: Roles are fundamentally broken?

2019-01-29 Thread Laurent Rosenfeld via perl6-users
Hi, I'm not an expert on OO programming, but my understanding of roles is that they make it possible to add some behaviors to a class (or to an object) while avoiding some of the pitfalls of inheritance, especially of multiple inheritance. So, even though I know about punning, I would tend to arg

Re: Roles are fundamentally broken?

2019-01-29 Thread Vadim Belman
> On Jan 29, 2019, at 3:43 AM, Simon Proctor wrote: > > I think part of the issue is that fundamentally Roles are intended to be a > way of doing non inheritance based classes. So composing Roles from other > Roles is an anti pattern. But why? As I stated in my previous reply: isn't it con

Re: Roles are fundamentally broken?

2019-01-29 Thread Vadim Belman
> On Jan 29, 2019, at 1:32 AM, yary wrote: > > https://github.com/rakudo/rakudo/issues/2657 > - looks like an outright bug, > to me. > > I don't know about "the big picture" but you hit a not-explicitly-documented > case. > > Referring to > ht

Re: Roles are fundamentally broken?

2019-01-29 Thread Simon Proctor
I think part of the issue is that fundamentally Roles are intended to be a way of doing non inheritance based classes. So composing Roles from other Roles is an anti pattern. On Tue, 29 Jan 2019, 06:32 yary https://github.com/rakudo/rakudo/issues/2657 - looks like an outright > bug, to me. > > I