From: Yohanes Santoso Date: 2002-05-21T23:33:40+09:00 Subject: Re: Memory consumption. Paul Brannan writes: > On Tue, May 21, 2002 at 10:28:17PM +0900, Yohanes Santoso wrote: > > That means you have to be careful not to do too much > > a = "foo" + "bar" > > instead > > a = "#{foo}#{bar}" > > This isn't quite the same thing. One is: > a = "foo" + "bar" #=> a == "foobar" > > the other is: > a = foo + bar #=> a == ? I meant foo = "foo" and bar = "bar" and the example should be a = foo + bar vs. a= "#{foo}#{bar}" > also avoid the intermediate objects, though, if the former is really > what you meant. Yes, thanks for pointing it out and sorry for the confusion. It's a 4am email :) YS.