Logan Capaldo
3/3/2006 10:05:00 PM
On Mar 3, 2006, at 4:48 PM, Marcin Mielzynski wrote:
> Hello,
>
> given:
>
> l=lambda{p local_variables;p a}
> a=:whatever
> l[]
>
> I know that 'a' variable shoud not be visible for closure, but why
> local_variables reports that it exists ? Is this behaviour intended ?
>
> lopex
>
l is closing over main, main has a local_variables method, that is
what is being called not the proc's local_variables.