From: Tim Hunter Date: 2008-02-20T10:04:18+09:00 Subject: Re: String Concatenation and Implicit Object Creation pachl wrote: > > Of course it does, that's not my question. > > Anyway, going off your reply, how many strings does the following > create? > > s1 = 'asdf' 'qwer' > Son-of-a-gun! Ruby *does* concatenate adjacent string literals. I learn something every day. My new copy of _The_Ruby_Programming_Language_ says that Ruby concatenates adjacent string literals during the parsing process. That makes me think that there's only 1 string created, "asdfqwer". -- RMagick: http://rmagick.rubyforge.org/ RMagick 2: http://rmagick.rubyforge.org/rmagick2.html