From: Meinrad Recheis Date: 2003-03-25T04:39:45+09:00 Subject: Re: [puts] - bug or feature? i see. one of the few cons of the cool ruby syntax. Kent: wow i can t imagine a more mathematical notation (of the parsing process) as yours ;) - Meinrad Kent Dahl wrote: > Meinrad Recheis wrote: > >>puts (3).to_s + 'b' >>3 >>=> "b" > > > It appear to be parsed as > > ((puts (3)).to_s) + 'b' > == ( (nil).to_s) + 'b' > == ( "") + 'b' > == "" + 'b' > == 'b' > > Makes perfect sense :-) > > Be careful with space between method name and parenthesis for > argumentnames. When in doubt, use parenthesis for method calls. >