From: ts Date: 2002-02-24T23:58:40+09:00 Subject: Re: duplicate method name >>>>> "R" == Ron Jeffries writes: R> And the fix is not to space after the second meth. What else could .meth R> mean at that point? What mistake is it warning me about? .meth at this point is interpreted as a method call, this is why ruby don't expect space before `(' It's best to see it with 1.7.2 because there is a small modification pigeon% cat b.rb #!./ruby -w class Object def meth(arg) return arg*2 end end meth (1 or 2) pigeon% pigeon% b.rb ./b.rb:8: warning: meth (...) interpreted as grouped expression pigeon% pigeon% cat b.rb #!./ruby -w class Object def meth(arg) return arg*2 end end meth(1 or 2) pigeon% pigeon% b.rb ./b.rb:8: parse error meth(1 or 2) ^ ./b.rb:8: warning: useless use of a literal in void context pigeon% Guy Decoux