From: mental@... Date: 2006-02-28T01:42:05+09:00 Subject: Re: Ruby Whitespace Semantics Quoting Almann Goo : > Can someone please explain the semantics behind the following: > > irb(main):001:0> a = ( 4 + 5 ) > => 9 > irb(main):002:0> a = ( 4 > irb(main):003:1> + 5 ) > => 5 > irb(main):004:0> a = ( 4 + > irb(main):005:1* 5 ) > => 9 > > The first and last statements make sense to me, but why is the > second one returning 5? a = ( 4 + 5 ) a = ( 4 ; + 5 ) a = ( 4 + 5 ) A line break begins a new statement unless there is a dangling binary operator or line continuation. -mental