From: Amos Date: 2001-05-06T00:37:18+09:00 Subject: [ruby-talk:14709] Re: local/nonlocal block vars >>>>> On Sat, 5 May 2001 15:15:04 +0900, >>>>> Guy N Hurst (gnh) writes: gnh> But maybe the symbol notation can be used in place of the < > gnh> for signaling vars which should be block-local. (Note: this is gnh> the opposite of the above proposal). gnh> x=99 gnh> 5.times {|:x| print x } # here, :x indicates it *should* be block-local gnh> 3.times {|y| print y } # here, y would be used or 'created' gnh> puts x # 99 gnh> puts y # 3 Well, this has been a long thread, but it certainly has been an interesting one, at least to me. The appealing quality of this approach is that it doesn't introduce anything that's not a part of the language already.... -- Amos