From: David Alan Black Date: 2004-04-15T22:49:11+09:00 Subject: Re: New Local Variable Scope rule Hi -- ts writes: > >>>>> "D" == David Alan Black writes: > > D> I guess I've been trying to have it be something else because I > D> dislike that so much (the 2.0 version). > > Well, if I've well understtod you still have the possibility to write > > l = lambda { local {|a| a = 1} } # ugly ??? I admit I'm confused by this. Is 'local' being introduced? And if |a| is a block variable, isn't it local to the block anyway? > D> pr = Proc.new { a = 1 } > D> l = lambda { b = 1 } > > and what do you do with this ? > > Thread.new { a = 1 } # like Proc or like lambda ? > NewClass.new { a = 1 } # like Proc or like lambda ? > new_method { a = 1 } # like Proc or like lambda ? I'm not sure what you mean. Do you mean what would I do if I were designing Ruby 2.0, or what do I think Matz will have them do? I don't know, since I still don't know the answer to the above (whether Proc and lambda will be different in this respect). I think maybe you think that I know, but I don't :-) David -- David A. Black dblack@wobblini.net