From: "Hal E. Fulton" Date: 2002-10-22T14:42:02+09:00 Subject: Re: Ruby/Tk newbie question ----- Original Message ----- From: "andrew delboy" To: "ruby-talk ML" Sent: Monday, October 21, 2002 11:49 PM Subject: Re: Ruby/Tk newbie question > Is there a way to concatonate strings without having to use the x.to_s method? > > In other words, because "+" is a string to start the expression, wouldnt the > plus operator actually be the '+' method within the string object? And thus > wouldnt the string want to use 'string values' of the objects they are concatonating? > > Can we use the shortcut of > > geom = "+" + x + "+" + y No... you can concatenate strings without to_s, of course, but not a string and a number. Hal