Skip Menu |
Report information
Id: 109300
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: masak <cmasak [at] gmail.com>
Cc:
AdminCc:

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



Subject: [BUG] LTA error message when declaring several variables without parentheses in Rakudo
Date: Sun, 29 Jan 2012 10:33:50 +0100
To: rakudobug [...] perl.org
From: Carl Mäsak <cmasak [...] gmail.com>
<fasad> so i found out that declaring more than one array on the same my statement does not work. why ? <fasad> my @a, @b; <sorear> need parens <sorear> std: my @a, @b; <p6eval> std 48335fc: OUTPUT«===SORRY!===␤Variable @b is not predeclared (declarators are tighter than comma, so maybe your 'my' signature needs parens?) [...] Check failed␤FAILED 00:01 111m␤» <fasad> oh <masak> could have a better error message. <sorear> masak: what do you propose? <masak> sorear: "Variable @b not predeclared (did you forget parentheses?)" <sorear> masak: you think that's better than what STD already does? <masak> sorear: oh! <masak> sorear: didn't read properly. :/ <masak> though I do think that "parens", cute as it is, is a less well-known term than "parentheses". <fasad> btw, rakudo complains about @b being not predeclared. Its warning has room for improvement ! <masak> fasad: yes. <masak> rakudo: my @a, @b; <p6eval> rakudo 9719f7: OUTPUT«===SORRY!===␤Variable @b is not predeclared at line 1, near ";"␤» * masak submits rakudobug
Download (untitled) / with headers
text/plain 1.4k
On Sun Jan 29 01:34:05 2012, masak wrote: Show quoted text
> <fasad> so i found out that declaring more than one array on the same > my statement does not work. why ? > <fasad> my @a, @b; > <sorear> need parens > <sorear> std: my @a, @b; > <p6eval> std 48335fc: OUTPUT«===SORRY!===␤Variable @b is not > predeclared (declarators are tighter than comma, so maybe your 'my' > signature needs parens?) [...] Check failed␤FAILED 00:01 111m␤» > <fasad> oh > <masak> could have a better error message. > <sorear> masak: what do you propose? > <masak> sorear: "Variable @b not predeclared (did you forget parentheses?)" > <sorear> masak: you think that's better than what STD already does? > <masak> sorear: oh! > <masak> sorear: didn't read properly. :/ > <masak> though I do think that "parens", cute as it is, is a less > well-known term than "parentheses". > <fasad> btw, rakudo complains about @b being not predeclared. Its > warning has room for improvement ! > <masak> fasad: yes. > <masak> rakudo: my @a, @b; > <p6eval> rakudo 9719f7: OUTPUT«===SORRY!===␤Variable @b is not > predeclared at line 1, near ";"␤» > * masak submits rakudobug
Current error message: perl6 -e 'my @a, @b' ===SORRY!=== Error while compiling -e Variable '@b' is not declared at -e:1 ------> my @a, ⏏@b perl6 --version This is Rakudo version 2016.08.1-59-gec9e814 built on MoarVM version 2016.08-23-gfa9528b implementing Perl 6.c. Output is also the same with the 2015.09 release.


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