From: Nobuyoshi Nakada Date: 2008-09-30T04:05:34+09:00 Subject: Re: ruby1.9 block scope Hi, At Tue, 30 Sep 2008 00:23:17 +0900, Daniel DeLorme wrote in [ruby-talk:316347]: > > 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! I guess the parser would do it at the compile time. -- Nobu Nakada