From: matz@... (Yukihiro Matsumoto) Date: 2000-10-16T14:55:10+09:00 Subject: [ruby-talk:5567] Re: local variables (nested, in-block, parameters, etc.) Hi, In message "[ruby-talk:5553] Re: local variables (nested, in-block, parameters, etc.)" on 00/10/16, Dave Thomas writes: |If we went with the { ..} thing, then would we need anything |special for this? Couldn't we just have | | def dvar | yield | end | | a = 1 | dvar { | a = 99 | } | | p a #=> 1 Conceptually, yes. But I think there may be a room for better description (hopefully natural to men). For example: lambda{ ...} # a,b,c as parameters. # d, e, f for local variables valid during the block. matz.