Re: Question about "colon syntax" for calling other methods on 'self' inside a method

2019-11-18 Thread yary
looks like a bug to me-file an issue on the rakudo GitHub On Sat, Nov 16, 2019 at 5:29 AM Raymond Dresens wrote: > Hello, > > I have a question related to the 'colon syntax' of Raku, which allows > you to call methods without parenthesis like this: > > class Foo > { > method prin

Re: Question about "colon syntax" for calling other methods on 'self' inside a method

2019-11-18 Thread yary
I take that back! What is the dollar sign doing there in the '$.print: ..." example? Try it without the dollar sign. Right now you're calling .print on the anonymous variable '$' -y On Mon, Nov 18, 2019 at 8:38 AM yary wrote: > looks like a bug to me-file an issue on the rakudo GitHub > > On

Re: Question about "colon syntax" for calling other methods on 'self' inside a method

2019-11-18 Thread Vadim Belman
I would say filing an issue might make sense in this case. Here is a related comment from Jonathan: https://github.com/rakudo/rakudo/issues/3222#issuecomment-539915286 – and it explicitly states that $. is a shortcut for method calling. Therefore, use of colon instead of braces should be a val

Re: Question about "colon syntax" for calling other methods on 'self' inside a method

2019-11-18 Thread Raymond Dresens
Hello Vadim, Yary, Thanks for your feedback, I've filed an issue: https://github.com/rakudo/rakudo/issues/3306 Yary, about the dollar sign, The snippet of code in the issue shows that expression "$.attribute" inside a method 'just works' for accessing individual attributes (or rather: implicitl