[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua string
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 26 Apr 2007 11:50:36 -0300
> I have not yet seen an implementation that is acceptable to The Lua
> Way, so for now I live with the limitation and program around it by
> using table.concat() when necessary.
If you are willing to be a little more verbose, you can write this,
with some metatable magic:
local s=String""
for i=0,30000 do
s=s..i
end
print(s:value())
See also http://lua-users.org/wiki/LuaRopes