lua-users home
lua-l archive

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


I know that deep copy function. I need a function in C. I'm going to be  passing lua tables between pthreads, these are separate lua states. 
So i have to take a table of one stack copy and push it onto another stack.

On Tue, Mar 16, 2010 at 4:48 PM, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
>  I need do a deep copy of lua table in C/CPP does anyone have an example?

You might start from http://lua-users.org/wiki/CopyTable

But why do you need a deep copy? I never needed to copy tables, let alone
deep copy.