From: Chad Perrin Date: 2006-08-02T04:59:23+09:00 Subject: Re: I thought this was the one that worked? 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. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] This sig for rent: a Signify v1.14 production from http://www.debian.org/