From: Paul Brannan Date: 2001-09-11T22:49:28+09:00 Subject: [ruby-talk:21142] Re: Is this a problem with puts? On Tue, 11 Sep 2001, Ryan Tarpine wrote: > For me, 'puts (42 .. 257).type' prints Range while 'puts(42 .. 257).type' > prints 42..257. (More) intelligence in 1.7? What happens if you run the interpreter with the -w option? In 1.6.4, a warning is emitted: [pbrannan@zaphod pbrannan]$ ruby -w -e 'puts (42..257).type' -e:1: warning: puts (...) interpreted as method call 42..257 [pbrannan@zaphod pbrannan]$ ruby -w -e 'puts(42..257).type' 42..257 Paul