From: nobu.nokada@... Date: 2003-01-31T11:02:42+09:00 Subject: Re: Local variables & blocks Hi, At Fri, 31 Jan 2003 09:44:28 +0900, ahoward wrote: > under the new rules if i : > > module M > CLOSURE = lambda { x = 42 } # defined?(x) > end > > include M > > would 'x' be defined here or not? I guess it's not defined. In Ruby, as far as I understand, local variables always belong to their scope, and modules do enclose it. The only difference here should be whether x is accessible or not after CLOSURE inside the module. -- Nobu Nakada