From: Dave Thomas Date: 2000-10-16T03:59:10+09:00 Subject: [ruby-talk:5553] Re: local variables (nested, in-block, parameters, etc.) matz@zetabits.com (Yukihiro Matsumoto) writes: > Guy's idea (oh, we have at least 2 Guys here ;-) this is Guy Decoux's > idea) in [ruby-talk:5545] of explicit dynamic variable declaration is > interesting too. This is similar to my idea described in [ruby-talk:5531](2). > This may solve the problem 2. But I feel this requires more > discussion to be a solid solution. 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 Dave