lua-users home
lua-l archive

Re: executing functions from file, without using luaL_dofile

[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.

AltStyle によって変換されたページ (->オリジナル) /