Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

This article is a part of the documentation of the Sea function library

	--
	-- copy( table [, recursionList ]  )
	-- 	Copies the values of a table
	-- 	If you use tables as keys, it will probably fail.
	-- 	If a table is in this table, and that table has an entry at index 0,
	-- 	and that entry is of type UserData, then that table will not be
	-- 	recursed, as that table would be reference to a frame.
	-- 	
	-- args:
	-- 	table - the table you want copied
	-- 	recursionList - don't use this
	--
	-- returns:
	-- 	table - the table containing the copy of the values
	--

Update Note

Sea.table.copy used to recurse frame references as if they were tables, this broke the reference.
It now will not recurse the entry if it is a table where index 0 is type UserData, as that is the form of a frame reference.