[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Transparent shallow copy of tables
- From: "Stuart P.Bentley" <stuart@...>
- Date: Wed, 26 Aug 2009 14:14:22 -0700
How can I do a shallow copy of a table that operates identically to the
original? Currently I'm setting tables to be empty tables with metatables
that save deletions and create similar shallow copies on index access, but
this is causing problems with functions like table.concat().
MY current approach is online at
http://bazaar.launchpad.net/~stuart/sandpad/stuart/annotate/head%3A/sandpad.wlua.