lua-users home
lua-l archive

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


I think this case would be helped by adding support for:

table.swap( t1, t2 )
If t1 and t2 are tables, then the result of this routine is to swap their
contents (presumably by swapping the data pointed to by the Lua table data
structures). If they aren't both tables, then an error is signaled.

This would help because you could change a table into a tracked table
without changing its identity and requiring everything that references it to
start referencing the new table.

Mark