$ raku -e 'class samesame { hello samesame, { say "Wosup?" } }' ===SORRY!=== Error while compiling -e Undeclared routine: hello used at line 1. Did you mean 'shell'?
Are you missing a comma there? Did you intend to call the "hello" subroutine, with "samesame" and the block as parameters? If not, what *did* you mean to accomplish? > On 24 Feb 2021, at 17:40, rir <rir...@comcast.net> wrote: > > Hello, > >> class samesame { hello samesame { say "Wosup?" } } > > ===SORRY!=== Error while compiling: > Unexpected block in infix position (missing statement control word before the > expression?) > ------> class samesame { hello samesame⏏ { say "Wosup?" } } > expecting any of: > infix > infix stopper > postfix > > Why is this a special case instead of a common undeclared error? The > second 'samesame' could be 'Instant' and do the same. > I'm not seeing how to continue from the ⏏ to make a statement. > > > rir >