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

BEGIN blocks run outside the lexical scope of the setting #1739

Closed
p6rt opened this issue May 2, 2010 · 5 comments
Closed

BEGIN blocks run outside the lexical scope of the setting #1739

p6rt opened this issue May 2, 2010 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented May 2, 2010

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

Searchable as RT74836$

@p6rt
Copy link
Author

p6rt commented May 2, 2010

From @sorear

17​:38 < sorear> rakudo​: say BEGIN { rand }
17​:38 < p6eval> rakudo c4857a​: OUTPUT«Could not find sub &rand␤current instr.​:
  '_block11' pc 0 (EVAL_1​:9)␤»
17​:39 < sorear> rakudo​: say rand
17​:39 < p6eval> rakudo c4857a​: OUTPUT«0.555681770990731␤»

@p6rt
Copy link
Author

p6rt commented May 2, 2010

From @jnthn

On Sat May 01 17​:43​:19 2010, stefanor@​cox.net wrote​:

17​:38 < sorear> rakudo​: say BEGIN { rand }
17​:38 < p6eval> rakudo c4857a​: OUTPUT«Could not find sub &rand␤current
instr.​:
'_block11' pc 0 (EVAL_1​:9)␤»
17​:39 < sorear> rakudo​: say rand
17​:39 < p6eval> rakudo c4857a​: OUTPUT«0.555681770990731␤»

Now​:

say BEGIN { rand }
0.252399930355267

Given to moritz++ for spectests.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented May 2, 2010

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

@p6rt
Copy link
Author

p6rt commented May 8, 2010

From @moritz

tested in t/spec/S04-phasers/rvalue.t

@p6rt
Copy link
Author

p6rt commented May 8, 2010

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

@p6rt p6rt closed this as completed May 8, 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