From: Martin DeMello Date: 2005-09-29T03:06:47+09:00 Subject: Re: creating independent lambdas in loops Ara.T.Howard wrote: > On Thu, 29 Sep 2005, David A. Black wrote: > > > > a = 1 > > method_call {|a| a = 2; b = 3 } > > puts a # 1 > > puts b # 3 > > oh gawd - that's horrible : variables exported from method scope to the global > (or enclosing perhaps?) one. eeks! Blocks exist in the caller's scope, not the method's, so I don't really see the problem here. martin