[NTG-context] LuaTeX Function Arguments Variables Parameters List ConTeXt Lua \startluacode

2012-01-27 Thread Mathieu Dupont
Hi List, I am trying to program with Lua but there are concepts I must not understand, and the documentation is somewhat lacking. The only useful thing I could use is Hans' manual, thanks to him. If someone could help me just understanding the concept I must me missing in this simple example I

Re: [NTG-context] LuaTeX Function Arguments Variables Parameters List ConTeXt Lua \startluacode

2012-01-27 Thread Philipp Gesang
Hi Mathieu, On 2012-01-27 19:06, Mathieu Dupont wrote: Hi List, Running the following code, variable a should not be modified by my function, and stay (1,2), but it does get modified and becomes (4,2) like the new variable b I am creating. Tables are references. Using the “local” keyword,

Re: [NTG-context] LuaTeX Function Arguments Variables Parameters List ConTeXt Lua \startluacode

2012-01-27 Thread Mathieu Dupont
Great, thank you very much Philipp. I will also read this page you pointed and I should understand better Lua then. http://wiki.contextgarden.net/table_manipulation Mathieu