lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> So i use instead "luaL_loadfile (L, "script.lua") "
> 
> But after loading the script file, how can i execute "foo" function from 
> inside it ?

Function definition is an executable statement so you need to execute
the script to define the functions it contains.