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 when using placeholder variable outside of a block in Rakudo #2006

Closed
p6rt opened this issue Aug 3, 2010 · 5 comments
Closed

Comments

@p6rt
Copy link

p6rt commented Aug 3, 2010

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

Searchable as RT76956$

@p6rt
Copy link
Author

p6rt commented Aug 3, 2010

From @masak

<PerlJam> patch​: $^vars are for self-declared parameters, so ... yes
<moritz_> only in blocks without a signature
<moritz_> (there are probably other valid places, that's just the
first I could think of )
<masak> moritz_​: does the outermost block count as a block without a signature?
<masak> rakudo​: say $^a
<p6eval> rakudo 0a8ef0​: OUTPUT«Lexical '$a' not found [...]
<moritz_> masak​: I hope not
<masak> std​: say $^a
<p6eval> std 31896​: OUTPUT«�[...] SORRY! [...] Placeholder variable
$^a may not be used outside of a block [...]
* masak submits LTA rakudobug

@p6rt
Copy link
Author

p6rt commented Jan 13, 2012

From @jnthn

On Tue Aug 03 07​:48​:19 2010, masak wrote​:

<PerlJam> patch​: $^vars are for self-declared parameters, so ... yes
<moritz_> only in blocks without a signature
<moritz_> (there are probably other valid places, that's just the
first I could think of )
<masak> moritz_​: does the outermost block count as a block without a
signature?
<masak> rakudo​: say $^a
<p6eval> rakudo 0a8ef0​: OUTPUT�Lexical '$a' not found [...]
<moritz_> masak​: I hope not
<masak> std​: say $^a
<p6eval> std 31896​: OUTPUT��[...] SORRY! [...] Placeholder variable
$^a may not be used outside of a block [...]
* masak submits LTA rakudobug

Today​:

say $^a
Cannot use placeholder parameter $^a in the mainline at line 1, near "\n"

Tagging testneeded.

/jnthn

@p6rt
Copy link
Author

p6rt commented Jan 13, 2012

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

@p6rt
Copy link
Author

p6rt commented Nov 25, 2012

From @FROGGS

there already is a test​:
Raku/roast@47eec67

@p6rt
Copy link
Author

p6rt commented Nov 25, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant