From: Charles Steinman Date: 2005-07-30T17:46:02+09:00 Subject: Re: make local var visible Pe�a, Botp wrote: > k, if we cannot adjust vars, > How about creating fxn declarations that unlike methods they can see > through... > > x = 1 > > deff fx > p x > end > > fx # prints 1 > > > > But i think it's an overkill to create new decl just so one can just see > through, no? I think it's overkill to create a way to make local variables not scope-local. We already have many types of variables that can be used in this case depending on what you're doing (including globals, constants, arguments and instance and class variables). What is the compelling reason to stomp on local variables? If you want to keep the scope, create a lambda. If not, define a normal method. I don't see the problem with that scheme as it exists.