From: matz@... (Yukihiro Matsumoto) Date: 2001-03-20T17:34:12+09:00 Subject: [ruby-talk:12924] Re: differences between range and array Hi, In message "[ruby-talk:12899] Re: differences between range and array" on 01/03/20, Jim Freeze writes: |> p (2.4/0.2).to_i # -> 12.0 |> p ((2.4/0.2).to_i) #-> 11 |> |Can you explain this? |I would call this a bug. | |(x) != x ??? This is one of the remaining pitfalls of Ruby. p (x).to_i # -> (p(x)).to_i p ((x).to_i) # -> p((x).to_i) It used to be space sensitive p (x).to_i # -> p((x).to_i) p(x).to_i # -> (p(x)).to_i but some hated it, because foo (a,b,c) became syntax error. matz.