On Mon Nov 05 09:39:33 2012, masak wrote:
> module foo; sub foo() { say "OH HAI" }; foo; foo()
> In this one, foo() parses as a coercion.
> jnthn: oh!
> * masak adds that to the appropriate rakudobug
> Anyway, it's right it doesn't call the sub. Just an LTA error I
> guess...though I ain't imm
There are no error messages anymore:
$ perl6 -e 'module foo; macro foo() { }; foo; foo();'
$ perl6 -e 'module foo; sub foo() { say "OH HAI" }; foo; foo()'
As I understand it, both 'foo' and 'foo()' are invoking the class. (It is
possible to call the sub with '&foo()', though.)
$ perl6 -e 'mod
module foo; sub foo() { say "OH HAI" }; foo; foo()
In this one, foo() parses as a coercion.
jnthn: oh!
* masak adds that to the appropriate rakudobug
Anyway, it's right it doesn't call the sub. Just an LTA error I
guess...though I ain't immediately sure what to do with it...
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #115608]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org:443/rt3/Ticket/Display.html?id=115608 >
r: module foo; macro foo() { }; foo; foo(); # foo works;
foo() doesn't
rakudo 6