From: Logan Capaldo Date: 2006-03-04T07:04:50+09:00 Subject: Re: closure & local_variables On Mar 3, 2006, at 4:48 PM, Marcin Miel��y��ski 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.