David Dunham wrote:
for k,v in pairs(a) do b.k = v end (which I don't think is correct in Lua).
nope; the correct would be: for k,v in pairs (a) do b[k] = v end -- Javier