Subramanya Sastry wrote:
So, the real question here boils down to the previous one: can we
safely determine what local variables are captured by closures? In
that sense, this is not a new special case that we need
No, that's not really possible. Seeing as you can do something like this:
def foo(n, x)
proc do
n + 1
end
end
b = foo(42, "blarg")
eval("puts x", b)
Cheers
--
Ola Bini (http://olabini.com)
Ioke creator (http://ioke.org)
JRuby Core Developer (http://jruby.org)
Developer, ThoughtWorks Studios (http://studios.thoughtworks.com)
Practical JRuby on Rails (http://apress.com/book/view/9781590598818)
"Yields falsehood when quined" yields falsehood when quined.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email