[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: table.copy
- From: Tobias Käs <tobias.kaes@...>
- Date: Wed, 25 Jun 2003 22:49:35 +0200
----- Original Message -----
From: "Tom Spilman" <firstname.lastname@example.org>
To: "Lua List" <email@example.com>
Sent: Wednesday, June 25, 2003 9:56 PM
> Is there a reason why there isn't a table.copy( table ) function in
> standard library? Tom
The reason is, there are many ways to copy a table, and you cannot define a
simple "standard" way.
An example is: How is table recursion handled? The way you want to deal with
this is application dependant. Another example is userdata: A reference copy
may not be the desired thing to do.
It's simple to write a function of your own, and there are also several
mailed to this list, just search.