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