From: Shugo Maeda Date: 2001-03-07T15:40:03+09:00 Subject: [ruby-talk:12212] Re: FEATURE REQUEST: 'my' local variables At 06 Mar 2001 19:32:58 -0800, Leo Razoumov wrote: > # PROPOSED FEATURE: > x = 0 #line_1 > { > my x = 7 # new varible 'x' shadowing 'x' from line_1 > x # -> 7 > } > x # -> 0 CLU (()) has explicit variable declarations and nested scopes, but prohibit the shadowing of variables in outer scopes. I think this rule is effective to avoid bugs. Shugo