eval()
should be able to resolve local variables
#65
Labels
builtin
Built-in functions or variables
compiler
Compiler/parser
experimental
Purely experimental ideas (for now)
feature
New feature or request
For comparison, Python's
eval()
does have access to locals; Lua'sload()
does not.Obviously this is a side-effect of how locals are compiled. It's not possible for
eval()
to know the identifiers of any corresponding in-scope locals since it's thrown away at compile-time. And wheneval()
callsriff_compile()
, a freshriff_parser
is initialized. Even if a singleriff_parser
was used, it obviously doesn't necessarily mean existing locals would be visible sinceriff_parser.locals
is effectively a stack.The text was updated successfully, but these errors were encountered: