Open stofel opened 11 years ago
Sorry for being so late; I did not get any github notifications for this repository.
I cannot understand your test:
Please elaborate on these points. If you can create a failing test case, the solution will get faster. :-)
func1(Text) -> {ok, L} = lua:new_state(), ?debugf("func1", L), % <- here i get: "func1" {lua,#Port<0.6373>} lual:dostring(L, LuaText), Result = luam:call(L, FuncName, ArgsList), lua:close(L), func2(Result, Text).
func1(Result, Text) -> {ok, L} = lua:new_state(), ?debugf("func2", L), % <- here i get: "func2" {lua,#Port<0.6375>} lual:dostring(L, LuaText), % and here get throw exeption: {unknown_return,{'EXIT',#Port<0.6373>,normal}} Result2 = luam:call(L, FuncName, ArgsList), lua:close(L), {Result, Result2}.
Second function get exit message from first function.