# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #115572]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=115572 >


<nwc10> masak: the macro definition has this: {{{$code}}}( {{{$argument}}}
);
<nwc10> but your expansion is this: (sub ($t) { say $t })("OH HAI");
<nwc10> why did the extra? set of () appear?
<flussence> std: sub ($t) { say $t }('arf')
<p6eval> std 04216b1: OUTPUT«ok 00:00 45m␤»
<flussence> ...well if that's the case I dunno
<flussence> r: sub ($t) { say $t }('arf')
<p6eval> rakudo 170c90: OUTPUT«===SORRY!===␤Confused [...]
<masak> nwc10: I tried it without the parens in Rakudo while writing the
post, and it didn't work without the parens.
<flussence> n: sub ($t) { say $t }('arf')
<p6eval> niecza v22-16-g4c016f5: OUTPUT«arf␤»
<masak> nwc10: but the real answer is that the transformation is not
textual, but on the AST level. so the parens are just there for clarity,
they don't change the AST topology.
* masak submits rakudobug
<nwc10> ah OK
<flussence> tbh, I really didn't expect that to work in niecza
<flussence> (nice that it does :)
<masak> well, since it parses in STD, it should mean something :)

Reply via email to