lua-users home
lua-l archive

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


do you mean I can load a script called "melee.lua" and then call

lua_getglobal(L, "melee.lua");
lua_pcall(L, ...);

is that it?


2009/9/23 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>
> I see.. so I can load all scripts at the beginning or at least be sure to
> load at least one time before calling the function.
>
> But I have to be sure that every script has a different function_name,
> otherwise I would be unable to call it. Is not it?

The script itself is an anonymous function.



--
God$ g++ -o earth earth.cpp -O3 -lanimals -lplants -lvirus

http://fog.neopages.org/