Deepcopy
From OpenEUO
Revision as of 17:42, 18 December 2010 by Ximan (Talk | contribs) (Created page with "== Calling Pattern == Call local r = sl.deepcopy(a) Args a is a table Results r is a table == Description == Calling deepcopy creates a copy of its sole argument, table a. ...")
Calling Pattern
Call
local r = sl.deepcopy(a)
Args
a is a table
Results
r is a table
Description
Calling deepcopy creates a copy of its sole argument, table a. Deepcopy operates recursively on any embedded table elements, including associated metatables. In the process, if getmetatable returns a non-table value, it is ignored. Can't be used to copy the closures associated with interface tables. Circular references and multiple references to individual tables won't be handled properly as of version 0.06
Upon Error
Errors are reported and handled according to the operant error redirection mode.