On Thu, 30 Jan 2003, Yukihiro Matsumoto wrote: > |To summarize: > | '=' refers to variables in the current method / class scope. > | ':=' refers to local vars > | block arguments are assigned with ':=' > | in case of shadowing a warning is issued. > > I may drop ':=' part, i.e. > > * block parameters are local to the block > * shadowing cause warnings > * no other way to make block local variables so, correct me if i am wrong, but this does not address the need to do x = nil a.each do |item| x = ... end p x does it? it seems like only > * shadowing cause warnings is different from current behavior right? would this somehow allow this type of behavior loop { export x; x = ... } p x which would be exactly the same as x = nil loop { x = ... } p x ?? -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 ====================================