From: pharrington Date: 2009-11-22T08:21:21+09:00 Subject: Re: Order of evaluation and precedence On Nov 21, 5:50 pm, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: Order of evaluation and precedence" >     on Sun, 22 Nov 2009 07:30:12 +0900, Seebs writes: > > |Is it actually guaranteed that the output will have "a" after "b" and "c"? > |In C, it wouldn't be. > > In Ruby, it should be.  It's part of spec. > >                                                         matz. Well if that's the case: irb(main):018:0> def a; puts "a"; 1 end; def b; puts "b"; 1 end; def c; puts "c"; 1 end => nil irb(main):019:0> a + (b + c) a b c => 3 irb(main):020:0> RUBY_VERSION => "1.8.7" irb(main):021:0> exit xeno@Clover:~/projects/rss_ish$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux] I had always assumed that methods were always evaluated left to right, order of operations having no impact on that. But if this isn't supposed to be the case, is it a bug? Or am I misunderstanding the issue?