Hi,

At Mon, 16 Jun 2003 17:17:53 +0900,
Dominik Werder wrote:
> I found also something interesting:
> 
> "Pre#{i.to_s}Post" seams to me cheaper than 'Pre'<<i.to_s<<'Post'

to_s inside #{} isn't needed.

> although ruby has to parse the double quoted string?

Yes for 1.6.  In 1.8, "Pre#{i}Post" is equivalent to
'Pre'<<i.to_s<<'Post'.

-- 
Nobu Nakada