can a method name contain a funny character?

2016-04-10 Thread Theo van den Heuvel
Hi perl6 fans, I can use funny characters in operators or in sub names (using term:<...>). However, when I try the same thing with an operator as in: class Foo { method term:<❤> { "mem heart".say } } my Foo $foo .= new; $foo.❤; I get: Malformed postfix call That is unexpected for me, bu

Re: can a method name contain a funny character?

2016-04-10 Thread Brock Wilcox
Maybe try it without the term, just "method funnychar (..." On Apr 10, 2016 09:23, "Theo van den Heuvel" wrote: > Hi perl6 fans, > > I can use funny characters in operators or in sub names (using > term:<...>). However, when I try the same thing with an operator as in: > > > class Foo { > meth

Re: can a method name contain a funny character?

2016-04-10 Thread Theo van den Heuvel
Hi Brock, no, that gives me Missing block Theo Brock Wilcox schreef op 2016-04-10 15:55: Maybe try it without the term, just "method funnychar (..." On Apr 10, 2016 09:23, "Theo van den Heuvel" wrote: Hi perl6 fans, I can use funny characters in operators or in sub names (using term:<...>)