lua-users home
lua-l archive

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


On 3/1/06, Ashwin Hirschi <deery@operamail.com> wrote:
>
> >> In other words, if you setup this table:
> >>
> >> oldtbl["a"] = {"somedata"};
> >> oldtbl["b"] = oldtbl["a"];
> >>
> >> you can copy it to newtbl such that newtbl["a"] would be a new copy of
> >> the "somedata" table, and newtbl["b"] would be a reference to the
> >> *new* table copy in newtbl["a"].
> >>
> >> I know, wishful thinking, but anyhow...
>
> Eh... why wishful thinking? It's not that hard to do, is it?!
>
> The key is to keep track of (i.e. a mapping of) table copies you make.

Agreed... the wishful thinking part was of having it get into the Lua
language via the table package :)