From: Paul Date: 2007-01-21T04:10:10+09:00 Subject: Re: Bug in Ruby with adding strings? Robert Klemme wrote: > > I think it's trying to parse as > puts('foo' + x.to_s, +'bar') > > where the comma is missing. So it thinks +'bar' is not an argument to > to_s but to puts. > I originally came across this when I was trying to assign something similar to a variable (trying to create a filename). That is: filename = 'foo' + x.to_s +'bar' Would it still be trying to use the +'bar' as an argument when trying to do an assignment?