Open dengzhicong opened 3 years ago
for example, I add “require("hello2-1")” to the “hello2-3.lua” ,failed to execute "luerl:do" , but only add "require("math")" success
lua:
require("math") require("hello2-1") function no() print("(16) No!") end print(math.abs(-15)) print("(15) Maybe ...") return "(X) Yes!"
erl:
>os:putenv("LUA_LOAD_PATH","C:/Users/admin/Desktop/luerl-0.4/examples/hello"). >{ok,Function,FullName,State}=luerl:path_loadfile("hello2-3.lua",luerl:init()). >luerl:do(Function,State).
fail info:
exception error: {lua_error, {no_module,<<"hello2-1">>, <<"'./hello2-1.lua' './hello2-1/init.lua' ">>},
for example, I add “require("hello2-1")” to the “hello2-3.lua” ,failed to execute "luerl:do" , but only add "require("math")" success
lua:
erl:
fail info: