nobu.nokada
11/7/2003 1:38:00 AM
Hi,
At Fri, 7 Nov 2003 07:57:32 +0900,
Paul Brannan wrote:
> On Fri, Nov 07, 2003 at 12:36:23AM +0900, Yukihiro Matsumoto wrote:
> > In message "Re: ruby-dev summary 21637-21729"
> > on 03/11/06, Paul Brannan <pbrannan@atdesk.com> writes:
> > |
> > | s = "this is a string " > > | "that I have chosen to break " > > | "into multiple lines"
> >
> > How about
> >
> > s = "this is a string " +
> > "that I have chosen to break " +
> > "into multiple lines"
>
> This works, but the concatenation is done at run-time instead of at
> compile-time.
In 1.8, this is concatenated at compile-time. :)
s = "this is a string #{ # And you can write
""}that I have chosen to break #{ # comments!
""}into multiple lines"
--
Nobu Nakada