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

executing the same eval twice without an enclosing block #2134

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

executing the same eval twice without an enclosing block #2134

p6rt opened this issue Sep 2, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Sep 2, 2010

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

Searchable as RT77646$

@p6rt
Copy link
Author

p6rt commented Sep 2, 2010

From mestre.smash@gmail.com

IRC log​:

11​:07 < smash> rakudo​: eval "say 1" for 1..4;
11​:07 <+p6eval> rakudo 27d54d​: OUTPUT«1␤Null PMC in copy␤ in 'eval'
at line 1117​:CORE.setting␤ in main program body at line
22​:/tmp/kyKDs6lmfi␤»
11​:08 < smash> !?
11​:11 < moritz_> rakudo​: eval 'say 1' for 1..2
11​:11 <+p6eval> rakudo 27d54d​: OUTPUT«1␤Null PMC in copy␤ in 'eval'
at line 1117​:CORE.setting␤ in main program body at line
22​:/tmp/v6wffwm3tF␤»
11​:11 < moritz_> rakudo​: eval 'say 1'; eval 'say 1'
11​:11 -!- HarryS [H@​harry.lu] has joined #perl6
11​:11 <+p6eval> rakudo 27d54d​: OUTPUT«1␤1␤»
11​:11 < moritz_> rakudo​: sub e { eval 'say 1' }; e() for 1..2
11​:11 <+p6eval> rakudo 27d54d​: OUTPUT«1␤1␤»
11​:12 < moritz_> rakudo​: for 1..2 { eval 'say 1' }
11​:12 <+p6eval> rakudo 27d54d​: OUTPUT«1␤1␤»
11​:12 < moritz_> this is most interesting
11​:12 < moritz_> rakudo​: eval '' for 1..2
11​:12 <+p6eval> rakudo 27d54d​: OUTPUT«Null PMC in copy␤ in 'eval' at
line 1117​:CORE.setting␤ in main program body at line
22​:/tmp/Lspsx0wm8T␤»
11​:13 < moritz_> executing the same eval twice without an enclosing
block triggers this error

smash

@p6rt
Copy link
Author

p6rt commented Oct 22, 2011

From @coke

On Thu Sep 02 03​:17​:54 2010, smash wrote​:

IRC log​:

11​:07 < smash> rakudo​: eval "say 1" for 1..4;
11​:07 <+p6eval> rakudo 27d54d​: OUTPUT«1␤Null PMC in copy␤ in 'eval'
at line 1117​:CORE.setting␤ in main program body at line
22​:/tmp/kyKDs6lmfi␤»
11​:08 < smash> !?
11​:11 < moritz_> rakudo​: eval 'say 1' for 1..2
11​:11 <+p6eval> rakudo 27d54d​: OUTPUT«1␤Null PMC in copy␤ in 'eval'
at line 1117​:CORE.setting␤ in main program body at line
22​:/tmp/v6wffwm3tF␤»
11​:11 < moritz_> rakudo​: eval 'say 1'; eval 'say 1'
11​:11 -!- HarryS [H@​harry.lu] has joined #perl6
11​:11 <+p6eval> rakudo 27d54d​: OUTPUT«1␤1␤»
11​:11 < moritz_> rakudo​: sub e { eval 'say 1' }; e() for 1..2
11​:11 <+p6eval> rakudo 27d54d​: OUTPUT«1␤1␤»
11​:12 < moritz_> rakudo​: for 1..2 { eval 'say 1' }
11​:12 <+p6eval> rakudo 27d54d​: OUTPUT«1␤1␤»
11​:12 < moritz_> this is most interesting
11​:12 < moritz_> rakudo​: eval '' for 1..2
11​:12 <+p6eval> rakudo 27d54d​: OUTPUT«Null PMC in copy␤ in 'eval' at
line 1117​:CORE.setting␤ in main program body at line
22​:/tmp/Lspsx0wm8T␤»
11​:13 < moritz_> executing the same eval twice without an enclosing
block triggers this error

smash

This is now fixed​:

21​:38 < [Coke]> rakudo​: eval "say 1" for 1..4
21​:38 <+p6eval> rakudo 142c41​: OUTPUT«1␤1␤1␤1␤»
21​:38 < [Coke]> rakudo​: eval '' for 1..2
21​:38 <+p6eval> rakudo 142c41​: ( no output )

Closable with tests.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Oct 22, 2011

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

@p6rt
Copy link
Author

p6rt commented Jan 6, 2012

From @moritz

now tested in S29-context/eval.t.

@p6rt
Copy link
Author

p6rt commented Jan 6, 2012

@moritz - 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