lua-users home
lua-l archive

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


This appears to the be #1 FAQ lately: lua_loadfile loads but *does not*
execute a Lua program. Use luaL_dofile instead. Perhaps this needs to be
clear in the manual.

In your case, call lua_pcall before lua_getfield and all will be well.
--lhf