From: ara.t.howard@... Date: 2006-08-02T05:12:02+09:00 Subject: Re: I thought this was the one that worked? On Wed, 2 Aug 2006, Chad Perrin wrote: > On Tue, Aug 01, 2006 at 11:34:35PM +0900, dblack@wobblini.net wrote: >> On Tue, 1 Aug 2006, Just Another Victim of the Ambient Morality wrote: >> >>> a = 1 >>> def x >>> puts a >>> end >>> >>> def y >>> x >>> end >>> >>> >>> Then x _will_ be a closure but, then again, we already knew this... >> >> But the a inside x and the a outside x are unrelated. Method >> definition blocks (with def) aren't closures. > > Wait . . . are you serious? Ruby is using dynamic scope here? Ugh. no. def x puts a end is __lexical__ scoping. not dynamic. -a -- we can never obtain peace in the outer world until we make peace with ourselves. - h.h. the 14th dali lama