Re: [NTG-context] about table operation in lua-ConTeXt

2017-02-13 Thread Jeong Dal
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

Re: [NTG-context] about table operation in lua-ConTeXt

2017-02-13 Thread Procházka Lukáš Ing .
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

Re: [NTG-context] about table operation in lua-ConTeXt

2017-02-13 Thread Hans Hagen
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

Re: [NTG-context] about table operation in lua-ConTeXt

2017-02-13 Thread Henri Menke
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

[NTG-context] about table operation in lua-ConTeXt

2017-02-12 Thread Jeong Dal
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