From: nobu.nokada@... Date: 2003-02-14T19:25:45+09:00 Subject: Re: Lexical scope and closures 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. -- Nobu Nakada