From: ahoward Date: 2003-01-31T09:44:28+09:00 Subject: Re: Local variables & blocks On Fri, 31 Jan 2003, Yukihiro Matsumoto wrote: > Probably you misunderstood "block local variables" either the current one, > or new one. "module" statement always introduce a new scope, and the scope > is *not* the module's namespace. Local variables vanishes after the > evaluation of the module body, unless they are captured by closures. As a > consequence, "temp" does not survive after the "module" statement. yes. i have confused scope with namespaces, but not entirely i think. under the new rules if i : module M CLOSURE = lambda { x = 42 } end include M would 'x' be defined here or not? -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ahoward@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================