Re: [NTG-context] t-inifile, my first experience with lua

2008-02-25 Thread Peter Münster
On Tue, Feb 26 2008, Hans Hagen wrote: > in your case, use > > thirddata.inifile = { } > > [...] > > just do: > > print(table.serialize(thirddata.inifile.t) > > (there are quite some helpers defined in l-string, l-table cum suis) Thank you, Hans, for your fast reply, these are already 2 usef

Re: [NTG-context] t-inifile, my first experience with lua

2008-02-25 Thread Hans Hagen
Peter Münster wrote: > Hello, > > Hey, it's really fun to code in lua: pattern matching, easy table > manipulation and so on, I should have learned it earlier! > > Since it's my first experience with lua, I would like to ask you for > comments on the t-inifile.tex module, attached to this message

Re: [NTG-context] t-inifile, my first experience with lua

2008-02-25 Thread Peter Münster
On Mon, Feb 25 2008, Aditya Mahajan wrote: >> I tried to implement a demo-mode, but there are two small problems: >> - I don't know how to use \savebuffer, all line-endings disappear in the >> saved file > > You can do something like > > \startbuffer[thewho] > contents of the ini file > \stopbuff

Re: [NTG-context] t-inifile, my first experience with lua

2008-02-25 Thread Aditya Mahajan
Hi Peter, On Mon, 25 Feb 2008, Peter Münster wrote: Hello, Hey, it's really fun to code in lua: pattern matching, easy table manipulation and so on, I should have learned it earlier! Looks interesting. Since it's my first experience with lua, I would like to ask you for comments on the t-i

[NTG-context] t-inifile, my first experience with lua

2008-02-25 Thread Peter Münster
Hello, Hey, it's really fun to code in lua: pattern matching, easy table manipulation and so on, I should have learned it earlier! Since it's my first experience with lua, I would like to ask you for comments on the t-inifile.tex module, attached to this message. I tried to implement a demo-mode