I'm having huge issues in Aardwolf Mushclient v 1040 with string.dump!
I am using the example script in the help file and I'm getting the same error in my plugin as well as a test alias
Run-time error
World: Aardwolf
Immediate execution
[string "Alias: "]:2: cannot dump functions
stack traceback:
[C]: in function 'dump'
[string "Alias: "]:2: in main chunk
The code I'm using is copied from the help file and it is:
function f () print "hello, world" end
s = string.dump (f)
assert (loadstring (s)) () --> hello, world
Now.. when i run this code in http://www.lua.org/cgi-bin/demo, it works fine.. but not in mush. The whole point of string.dump is to dump functions, why is the error message saying "cannot dump functions" ?
WinkleWinkle
I am using the example script in the help file and I'm getting the same error in my plugin as well as a test alias
Run-time error
World: Aardwolf
Immediate execution
[string "Alias: "]:2: cannot dump functions
stack traceback:
[C]: in function 'dump'
[string "Alias: "]:2: in main chunk
The code I'm using is copied from the help file and it is:
function f () print "hello, world" end
s = string.dump (f)
assert (loadstring (s)) () --> hello, world
Now.. when i run this code in http://www.lua.org/cgi-bin/demo, it works fine.. but not in mush. The whole point of string.dump is to dump functions, why is the error message saying "cannot dump functions" ?
WinkleWinkle