lua-users home
lua-l archive

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


* 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.