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

Can't refer to variables outside of a BEGIN block in Rakudo #1430

Closed
p6rt opened this issue Dec 7, 2009 · 4 comments
Closed

Can't refer to variables outside of a BEGIN block in Rakudo #1430

p6rt opened this issue Dec 7, 2009 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Dec 7, 2009

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

Searchable as RT71096$

@p6rt
Copy link
Author

p6rt commented Dec 7, 2009

From @masak

<masak> rakudo​: my $a; BEGIN { $a = 42 }
<p6eval> rakudo 7ef386​: Symbol '$a' not predeclared in <anonymous> [...]
<masak> should that work?
<mathw> I don't think so
<moritz_> std​: my $a; BEGIN { $a = 42 }
<p6eval> std 29276​: ok 00​:01 106m␤
<moritz_> ng​: my $a; BEGIN { $a = 42 }
<p6eval> ng 7fc485​: sh​: ./perl6​: No such file or directory␤
<masak> moritz_​: oh yeah, ng doesn't work.
<masak> in p6eval, that is.
<masak> it works fine locally. :)
<masak> and it accepts that oneliner.
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Mar 2, 2010

From @cjfields

This appears to be fixed at the moment in rev. 6867a5 on github.
Closing per masak's request.

On Mon Dec 07 01​:23​:47 2009, masak wrote​:

<masak> rakudo​: my $a; BEGIN { $a = 42 }
<p6eval> rakudo 7ef386​: Symbol '$a' not predeclared in <anonymous> [...]
<masak> should that work?
<mathw> I don't think so
<moritz_> std​: my $a; BEGIN { $a = 42 }
<p6eval> std 29276​: ok 00​:01 106m␤
<moritz_> ng​: my $a; BEGIN { $a = 42 }
<p6eval> ng 7fc485​: sh​: ./perl6​: No such file or directory␤
<masak> moritz_​: oh yeah, ng doesn't work.
<masak> in p6eval, that is.
<masak> it works fine locally. :)
<masak> and it accepts that oneliner.
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Mar 2, 2010

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

@p6rt
Copy link
Author

p6rt commented Mar 2, 2010

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

@p6rt p6rt closed this as completed Mar 2, 2010
@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