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

eval() doesn't catch "Scope not found" errors #162

Closed
p6rt opened this issue Jul 8, 2008 · 3 comments
Closed

eval() doesn't catch "Scope not found" errors #162

p6rt opened this issue Jul 8, 2008 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jul 8, 2008

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

Searchable as RT56692$

@p6rt
Copy link
Author

p6rt commented Jul 8, 2008

From @moritz

Rakudo r29147​:

eval '$x'; say $!.perl
Scope not found for PAST​::Var '$x'

Instead of storing the error in $!, the eval itself dies.
eval() should never through an exception (ie catch all excpetions
inside), and perhaps fail() on error, which only raises an exception if
'use fatal;' is in scope.

This affects some scoping tests in the test suite, notably in
t/spec/S04-declarations/my.t and t/builtins/my.t (not yet in spec/, but
I'm working on it).

Moritz

--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/

@p6rt
Copy link
Author

p6rt commented Jul 8, 2008

From @moritz

resolved in r29148, bacek++

@p6rt
Copy link
Author

p6rt commented Jul 8, 2008

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

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