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

LTA error message about undeclared &-sigil variables not being predeclared in Rakudo #2609

Closed
p6rt opened this issue Jan 11, 2012 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jan 11, 2012

Migrated from rt.perl.org#107960 (status was 'resolved')

Searchable as RT107960$

@p6rt
Copy link
Author

p6rt commented Jan 11, 2012

From @masak

<masak> nom​: say &foo; sub foo {}
<p6eval> nom 38165a​: OUTPUT«sub foo() { ... }␤»
<masak> nom​: say &foo
<p6eval> nom 38165a​: OUTPUT«===SORRY!===␤Symbol '&foo' not predeclared
in <anonymous> (/tmp/7YmgXCNZA0​:1)␤»
<moritz> and not postdeclared either :-)
<masak> I don't really like the error message, because the symbol
'&foo' is not predeclared even in the former... right.
* masak submits rakudobug for LTA error message
<masak> the issue with the error message has something to do with that
it doesn't correctly identify the error.
<masak> '&foo' doesn't need to be predeclared; it just needs to be declared.
<moritz> aye; rakudo just has a single code path for all the
undeclared symbol errors
<moritz> and everything else needs to be predeclared

@p6rt
Copy link
Author

p6rt commented Nov 21, 2012

From @FROGGS

it's Nil nowadays, is that better?

<FROGGS> r​: say &foo
<p6eval> rakudo bf472b​: OUTPUT«Nil␤»

@p6rt
Copy link
Author

p6rt commented Nov 21, 2012

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

@p6rt
Copy link
Author

p6rt commented Jan 4, 2013

From @moritz

Now says

===SORRY!===
Undeclared name​:
  &foo used at line 1

which is awesome enough, I think. And tested sufficiently.

@p6rt
Copy link
Author

p6rt commented Jan 4, 2013

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Jan 4, 2013
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant