From: Rick DeNatale Date: 2009-11-22T08:46:57+09:00 Subject: Re: Order of evaluation and precedence On Sat, Nov 21, 2009 at 6:42 PM, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: Order of evaluation and precedence" >    on Sun, 22 Nov 2009 07:50:09 +0900, Yukihiro Matsumoto writes: > > |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. > > Oops, I have mistaken.  The evaluation order should be from left to > right.  So, even when you've put parentheses around b + c, the output > should be "a" then "b" then "c". Hi Matz. As I pointed out in my earlier post, even though the + within the parentheses gets evaluated before the first +, the arguments are still evaluated left to right. Right? -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale