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


The code is worth a 1000 words, so see evals below. The issue is or/and/andthen 
after a sub call without parenthesis give an error that or/and/andthen are not 
defined subs. With || the issue does not see to appear, while with && we get a 
TTIR:

<Zoffix> m: fail or fail;
<camelia> rakudo-moar ac4f9f: OUTPUT«===SORRY!=== Error while compiling 
/tmp/IfSQFv7yVR␤Undeclared routine:␤    or used at line 1␤␤»
<Zoffix> m: fail() or fail;
<camelia> rakudo-moar ac4f9f: OUTPUT«Failed␤  in block <unit> at 
/tmp/i553uhRVXy line 1␤␤»
<Zoffix> m: fail and fail;
<camelia> rakudo-moar ac4f9f: OUTPUT«===SORRY!=== Error while compiling 
/tmp/J8RuBepwj2␤Undeclared routine:␤    and used at line 1. Did you mean 
'rand', 'any', 'end'?␤␤»
<Zoffix> m: fail() and fail;
<camelia> rakudo-moar ac4f9f: OUTPUT«Failed␤  in block <unit> at 
/tmp/Qcy6ni8Yl2 line 1␤␤»
<Zoffix> m: fail || fail;
<camelia> rakudo-moar ac4f9f: OUTPUT«Failed␤  in block <unit> at 
/tmp/u5LL5QACth line 1␤␤»
<Zoffix> m: fail && fail;
<camelia> rakudo-moar ac4f9f: OUTPUT«===SORRY!=== Error while compiling 
/tmp/P21srEsUth␤Two terms in a row␤at /tmp/P21srEsUth:1␤------> fail &&⏏ fail;␤ 
   expecting any of:␤        infix␤        infix stopper␤        postfix␤       
 statement end␤        state…»
<Zoffix> m: fail() && fail;
<camelia> rakudo-moar ac4f9f: OUTPUT«Failed␤  in block <unit> at 
/tmp/Om2MctCB1k line 1␤␤»
<Zoffix> m: fail andthen fail;
<camelia> rakudo-moar ac4f9f: OUTPUT«===SORRY!=== Error while compiling 
/tmp/YfoH1FxSAN␤Undeclared routine:␤    andthen used at line 1␤␤»
<Zoffix> m: fail() andthen fail;
<camelia> rakudo-moar ac4f9f: OUTPUT«Failed␤  in block <unit> at 
/tmp/IBwL8yFoGX line 1␤␤»

Reply via email to