Re: executing functions from file, without using luaL_dofile
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: executing functions from file, without using luaL_dofile
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 1 May 2011 16:04:16 -0300
> 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.