From: Aristarkh A Zagorodnikov Date: 2001-06-07T15:57:57+09:00 Subject: [ruby-talk:16292] Re: Timezone in Time::{local,gm} Hello! The following code does not work with new ruby (ruby 1.7.1 (2001-06-06) [i586-linux] and even ruby 1.7.1 (2001-05-30) [i586-linux]). It seems that parsing code was changed (I know about the {} definition change, so I use latest CVS where it has been fixed). It is errm ... frustrating, because I use code like that very often. test.rb: class Test def each(param) %w(a b c).each do |data| yield param + data end end end name = 'str:' f = Test.new f.each name do |i| p i end it gives: test.rb:10: undefined method `name' for # (NoMethodError) but when line 10 is chnaged to: f.each(name) do |i| p i end it produces expected results: "str:a" "str:b" "str:c" I'd prefer the former parsing behavior bacuase this new stuff adds just a lot of code to change for me, also with hard-to-find bugs (local variable name vs name method which won't show up as error). Aristarkh A Zagorodnikov, Lead Programmer, W3D Group http://www.w3d.ru /// xm@w3d.ru /// ICQ UIN 36987938