Re: [NTG-context] error with table.serialize(environment)

2011-05-18 Thread Hans Hagen
On 18-5-2011 5:49, Peter Münster wrote: Hans Hagen writes: -- error: l-table.lua:565: unable to dump given function: print(table.serialize(environment)) to be expected And what about replacing line 565 by something like this: handle(format("%s [%q]=loadstring(%q),",depth,k,

Re: [NTG-context] error with table.serialize(environment)

2011-05-18 Thread Peter Münster
Hans Hagen writes: >> -- error: l-table.lua:565: unable to dump given function: >> print(table.serialize(environment)) > > to be expected And what about replacing line 565 by something like this: handle(format("%s [%q]=loadstring(%q),",depth,k, debug.getinfo(v).wha

Re: [NTG-context] error with table.serialize(environment)

2011-05-18 Thread Hans Hagen
On 18-5-2011 3:04, Peter Münster wrote: Hello, Here a test file "test.cld" to show the problem: local t = {bla = "blub"} -- no problem: print(table.serialize(t)) -- error: l-table.lua:565: unable to dump given function: print(table.serialize(environment)) to be expected Hans -

[NTG-context] error with table.serialize(environment)

2011-05-18 Thread Peter Münster
Hello, Here a test file "test.cld" to show the problem: local t = {bla = "blub"} -- no problem: print(table.serialize(t)) -- error: l-table.lua:565: unable to dump given function: print(table.serialize(environment)) context.bye() -- Peter __