From: Robert Klemme Date: 2003-02-14T22:32:11+09:00 Subject: Re: Lexical scope and closures schrieb im Newsbeitrag news:200302141025.h1EAPi824302@sharui.nakada.kanuma.tochigi.jp... > Hi, > > At Fri, 14 Feb 2003 19:11:42 +0900, > Robert Klemme wrote: > > > I'd choose something between > > > > > > arr.each {|i| > > > local{|a,b| > > > c = .. > > > ... > > > } > > > } > (snip) > > > in either case, a, b are local, c is method-wise variable. > > > > I vote for the second variant, possibly replacing 'let' with 'local'. The > > drawback of the first variant is IMHO that it is too easily recognized as > > an ordinary block. > > Because it is an ordinary block. ? Why would you then need a 'local' keyword at all? Regards robert