From: "David A. Black" Date: 2008-02-13T00:40:21+09:00 Subject: Re: formal argument cannot be an instance variable Hi - On Tue, 12 Feb 2008, Phlip wrote: > someone tried my code on 1.9 and got this "bug": > >> Hydra(src}$ruby9 ruby_reflector_test.rb <== ruby 1.90 >> ruby_reflector_test.rb:117: formal argument cannot be an instance variable >> Pathname.glob(rubynodes) do |@node_rb| >> ^ > > Uh, guys, that can't possibly be a feature, right? Dropping an iter parameter > into an ivar is a totally awesome technique - especially because it helps the > Method Object Refactor... Block parameter semantics are no longer assignment-based. I'm a bit nostalgic for the old way too :-) But it's all part of the new approach that allows for block locals and so forth. David -- Training for 2008! Ruby on Rails training by David A. Black/Ruby Power and Light, LLC: * Intro to Rails, New York, NY, February 4-7 2008 * Advancing With Rails, New York, NY, February 11-14 2008 Hosted by Exceed Education. See http://www.rubypal.com for details!