Actions
Bug #13337
closedEval and Later Defined Local Variables
Bug #13337:
Eval and Later Defined Local Variables
Description
I've noticed the following behavior with eval:
def example
eval("foo") # => nil, but would expect a NameError
eval("bar") # => NameError
foo = 1
end
I'm assuming this behavior is expected, since "eval" executes in the context of the existing YARV instructions and local table, but I'm not certain since I haven't seen this behavior documented anywhere.
Files
Actions