From: ts Date: 2004-04-15T22:56:16+09:00 Subject: Re: New Local Variable Scope rule >>>>> "D" == David Alan Black writes: D> ts writes: D> I admit I'm confused by this. Is 'local' being introduced? And if D> |a| is a block variable, isn't it local to the block anyway? [ruby-talk:63199] >> 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 ? D> I'm not sure what you mean. Do you mean what would I do if I were D> designing Ruby 2.0, yes, D> or what do I think Matz will have them do? I D> don't know, since I still don't know the answer to the above (whether D> Proc and lambda will be different in this respect). I think maybe you D> think that I know, but I don't :-) If you introduce a difference between Proc and lambda, what do you do with the examples that I've given ? Thread will work like Proc or like lambda ? Guy Decoux