lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Oops, you're quite right, I forgot to add parentheses in my first example.

~Jonathan

> Date: Thu, 11 Feb 2010 17:05:27 -0200
> Subject: Re: concatenation with nested functions
> From: romuloab@gmail.com
> To: lua@bazar2.conectiva.com.br
>
> On Thu, Feb 11, 2010 at 5:00 PM, Etan Reisner
> <deryni@unreliablesource.net> wrote:
> >> Perhaps this should be:
> >>
> >> function one()
> >>     return( [[long long string]] .. two() .. [[more long long string]] )
> >> end
> > <snip>
>
> Oh sorry, i mentally ignored that you are *returning* a concatenation.
> In the example from Jonathan, he was concatenating the result of
> print: << print[[foo]] .. two() .. [[bar]] >>.
>
> Sorry again.
>
> --rb


Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign up now.