Hi, At Wed, 5 Feb 2003 12:59:28 +0900, Yukihiro Matsumoto wrote: > |Although I agree that shadowing is one of the worst manners, it > |might be too noisy when running a script expects current > |behavior. What about warning when once shadowed variable is > |re-used again? > > Example? foo = 0 [1,2,3].each do |foo| # (1) .. end puts foo # (2) No warning at (1), probably unless -w, but warning at (2), where `foo' will be 0 under the new rule, whereas 3 under the current rule. If there is no line (2), that is `foo' will never be used again, it will be just discarded quietly regardless shadowed or not. -- Nobu Nakada