From: Gavin Sinclair Date: 2003-02-02T09:17:09+09:00 Subject: Re: Local variables & blocks On Sunday, February 2, 2003, 2:19:19 AM, Yukihiro wrote: > Hi, > In message "Re: Local variables & blocks" > on 03/02/01, Gavin Sinclair writes: > |Sorry for being so dense. Can you confirm the propsed output of the > |following code? I swear I have read every post in this thread, and not > |really understood. > Sorry for being terse. Ask me anything if you have question. > | [1,2,3].each { |x| thisval = x } > | puts x > -:2: undefined local variable or method `x' for # (NameError) That's good; I like it! Gavin