[perl #115608] [BUG] Cannot call a routine using 'foo' syntax when a module 'foo' is declared in Rakudo

2015-11-26 Thread jn...@jnthn.net via RT
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

[perl #115608] [BUG] Cannot call a routine using 'foo' syntax when a module 'foo' is declared in Rakudo

2015-03-11 Thread Christian Bartolomaeus via RT
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

[perl #115608] [BUG] Cannot call a routine using 'foo' syntax when a module 'foo' is declared in Rakudo

2012-11-05 Thread Carl Mäsak via RT
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...

[perl #115608] [BUG] Cannot call a routine using 'foo' syntax when a module 'foo' is declared in Rakudo

2012-11-05 Thread Carl Mäsak
# 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