# New Ticket Created by  Zoffix Znet 
# Please include the string:  [perl #132262]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=132262 >


If you enter the Quote braid, then define a new op, and then try to use it in a 
block within quotes, it fails to find the routine:

18:29           m: ""; sub postfix:<!>($) {}; "{ 5! }";
18:29   camelia         rakudo-moar e13512: OUTPUT: «5===SORRY!5=== Error while 
compiling <tmp>␤Negation metaoperator not followed by valid infix␤at 
<tmp>:1␤------> 3""; sub postfix:<!>($) {}; "{ 5!7⏏5 }";␤    expecting any of:␤ 
       infix␤        infix stopper␤»

But if you move the first quotes past the sub, then it works:

18:29   Zoffix  m: sub postfix:<!>($) {}; ""; "{ 5! }";
18:29   camelia         rakudo-moar e13512: OUTPUT: «WARNINGS for 
<tmp>:␤Useless use of constant string "" in sink context (line 1)␤Use of Nil in 
string context␤  in block <unit> at <tmp> line 1␤»

IRC: https://irclog.perlgeek.de/perl6/2017-10-10#i_15284813

Reply via email to