Skip Menu |
Report information
Id: 127163
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cpan [at] zoffix.com
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [BUG] Failure of operators after parenthesis-less sub calls
Download (untitled) / with headers
text/plain 1.7k
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␤␤»


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org