lua-users home
lua-l archive

Re: Copying one table into another (in C)

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


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

AltStyle によって変換されたページ (->オリジナル) /