lua-users home
lua-l archive

Re: concatenation with nested functions

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


On Thu, Feb 11, 2010 at 4:49 PM, Etan Reisner
<deryni@unreliablesource.net> wrote:
> function one()
>    return [[long long string]] ..
>    two() ..
>    [[more long long string]]
> end
Perhaps this should be:
function one()
 return( [[long long string]] .. two() .. [[more long long string]] )
end
of
function one()
 return string.format( '%s%s%s',
 [[long long string]], two(), [[more long long string]]
 )
end
--rb

AltStyle によって変換されたページ (->オリジナル) /