From: Daniel DeLorme Date: 2008-09-30T00:23:17+09:00 Subject: Re: ruby1.9 block scope Yukihiro Matsumoto wrote: > |> I have once presented a plan to make it work so, but have never > |> implemented. So it's not "changed reversed". Just the idea > |> abandoned. > | > |Ah, ok, then I guess I *did* dream the whole thing. For the record, I > |think it's a great idea and deserves to be implemented... in ruby 2.0 > |maybe ;-) > > My vague idea for the issue is that when you see the reference to a > local variable inside of the block, the scope of the variable would be > upgraded to the level of the reference. Do you mean upgrade the scope of the variable dynamically? Is that even possible? I thought that all local vars had their scope pretty much set in stone at the lexical level. But if you could upgrade their scoping level dynamically... that would be nifty indeed! -- Daniel