Dear Henri, Hans, Procházka,
Thank you for the answers.
It is what I want, and I can complete my code.
Thanks again.
Best regards,
Dalyoung
___
If your question is of interest to others as well, please add an entry
Hello,
tables in Lua are "shared" - there is one copy until you "deep copy" one to
another.
Se comments bellow -
On Mon, 13 Feb 2017 06:50:38 +0100, Jeong Dal wrote:
Dear all,
It may be a slight off topic.
In the following example, I copied a table “m” to “tempM”, and
On 2/13/2017 6:50 AM, Jeong Dal wrote:
Dear all,
It may be a slight off topic.
In the following example, I copied a table “m” to “tempM”, and remove the last
row of tempM.
Then the output is “ 2, 2”
I checked the contents of tempM and m and found that they are same even though
I didn’t touch
On 02/13/2017 06:50 AM, Jeong Dal wrote:
> Dear all,
>
> It may be a slight off topic.
> In the following example, I copied a table “m” to “tempM”, and remove the
> last row of tempM.
> Then the output is “ 2, 2”
> I checked the contents of tempM and m and found that they are same even
> though
Dear all,
It may be a slight off topic.
In the following example, I copied a table “m” to “tempM”, and remove the last
row of tempM.
Then the output is “ 2, 2”
I checked the contents of tempM and m and found that they are same even though
I didn’t touch m.
I want to remove the last row of tempM