Re: Lua Pickle error?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Lua Pickle error?
- From: Florian Weimer <fw@...>
- Date: 2010年1月23日 10:53:14 +0100
* Joe Andresen:
> I went to the lua users org site to get the code but i seem to get the error
>
> ..\Content\Scripts\LuaPickle.lua:13: attempt to call a table value
>
> which is the line
>
> clone = function (t) local nt={}; for i, v in t do nt[i]=v end return nt end
I think this has to be written "for i, v in pairs(t)" in Lua 5.1.