[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: concatenation with nested functions
- From: Etan Reisner <deryni@...>
- Date: Thu, 11 Feb 2010 13:49:47 -0500
On Thu, Feb 11, 2010 at 01:37:05PM -0500, Patrick wrote:
> function one() print[[long long string]] .. function two() print('blah')
> end two() .. [[more of the long string]] end
> Thanks for reading-Patrick
print doesn't return a string, it prints it directly, so there's nothing
to concatenate anywhere in there.
print[[long long string]]
print[[more long long string]]
will do what you want, though you don't need to define function two there
for that to work outside of function one works just fine as well.
Alternatively maybe you meant:
return [[long long string]] ..
[[more long long string]]