Hi, At Wed, 5 Feb 2003 00:13:39 +0900, Robert Klemme wrote: > The proposed new rule is that a variable introduced in a block (other than > the block parameters) is not local to the block but the enclosing scope. > So in effect you can do then: > > def summer(*args) > args.each { |arg| sum += arg.to_i } > sum > end nil doesn't have method `+'. > Today you have to write > > def summer(*args) > sum = 0 > args.each { |arg| sum += arg.to_i } > sum > end You will have to write as above under the new rule. -- Nobu Nakada