Previous: slua_tbl_cmp, Up: Manipulating Tables


A.2.11 slua_tbl_copy

make a shallow copy of a table

Synopsis

     #include <luasup/luasup.h>
     
     
     
lua_Object slua_tbl_copy(lua_Object table);

Parameters

lua_Object table
the table to copy

Description

This routine makes a shallow copy of a table. It doesn't not attempt to recursively create tables contained within the table.

Returns

It returns a table object upon success, or LUA_NOOBJECT upon error.

Author

Diab Jerius