Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error message when declaring two-colon-sigil variable ::Foo in Rakudo #2215

Open
p6rt opened this issue Nov 1, 2010 · 4 comments
Open

error message when declaring two-colon-sigil variable ::Foo in Rakudo #2215

p6rt opened this issue Nov 1, 2010 · 4 comments
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Nov 1, 2010

Migrated from rt.perl.org#78752 (status was 'open')

Searchable as RT78752$

@p6rt
Copy link
Author

p6rt commented Nov 1, 2010

From @masak

<moritz_> rakudo​: my :​:A
<p6eval> rakudo 5f5bae​: OUTPUT«===SORRY!===␤Malformed my at line 22,
near "​::A"␤»
<jnthn> std​: my :​:A;
<p6eval> std a194beb​: OUTPUT«�[31m===�[0mSORRY!�[31m===�[0m␤Illegal
redeclaration of symbol 'A' (see line 1) at /tmp/2_oKyMhSZP line
1​:␤------> �[32mmy :​:A�[33m⏏�[31m;�[0m␤Multiple prefix constraints not
yet supported [...]
<moritz_> that's a LTA error
* masak submits rakudobug

First, the two error messages in Rakudo and STD.pm6 don't agree; they
probably should. Second, even the error message of STD.pm6 seems
suspect. Why is it a redeclaration?

@p6rt
Copy link
Author

p6rt commented Feb 8, 2015

From @Mouq

Rakudo now complains with​:

22​:32 <Mouq> m​: my :​:A;
22​:32 <camelia> rakudo-moar 34669d​: OUTPUT«===SORRY!===␤Type 'A' is not
  declared␤at /tmp/vpFjxsTtsO​:1␤------> my :​:A⏏;␤Malformed
  my␤at /tmp/vpFjxsTtsO​:1␤------> my :​:A⏏;␤␤»

Which is Less LTA, but still not Awesome.

On Mon Nov 01 06​:47​:39 2010, masak wrote​:

<moritz_> rakudo​: my :​:A
<p6eval> rakudo 5f5bae​: OUTPUT«===SORRY!===␤Malformed my at line 22,
near "​::A"␤»
<jnthn> std​: my :​:A;
<p6eval> std a194beb​: OUTPUT«�[31m===�[0mSORRY!�[31m===�[0m␤Illegal
redeclaration of symbol 'A' (see line 1) at /tmp/2_oKyMhSZP line
1​:␤------> �[32mmy :​:A�[33m⏏�[31m;�[0m␤Multiple prefix constraints not
yet supported [...]
<moritz_> that's a LTA error
* masak submits rakudobug

First, the two error messages in Rakudo and STD.pm6 don't agree; they
probably should. Second, even the error message of STD.pm6 seems
suspect. Why is it a redeclaration?

@p6rt
Copy link
Author

p6rt commented Feb 8, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
@JJ
Copy link

JJ commented Dec 29, 2020

This says now:

Malformed my (did you forget a variable after type?)

Also you can do:

my ::A $b;

And it's entirely happy with it, returning "(low-level object A)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

2 participants