From: ts Date: 2001-08-08T14:00:09+09:00 Subject: [ruby-talk:19345] Re: Help with ternary operator syntax and grammar >>>>> "R" == Ryo Furue writes: R> cond = 1 R> print cond == 1 ? ", " : "\n" R> print (cond == 1) ? ", " : "\n" R> I think this is very counter-intuitive. What's the rationale for this R> interpretation? This is changed in ruby-1.7.* pigeon% ruby -ve 'cond = 1; print cond == 1 ? ", " : "\n"; print (cond == 1) ? ", " : "\n"' ruby 1.7.1 (2001-08-06) [i686-linux] -e:1: warning: print (...) interpreted as command call , , pigeon% Guy Decoux