lua-users home
lua-l archive

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



On 27-Sep-06, at 12:50 AM, Wesley Smith wrote:

err = luaL_loadstring(x->lua, *(x->texthandle));

All this does is compile the text into a chunk (i.e. function).
Until you call the function, nothing happens. In particular,
the function statement is not executed, so the global draw is
not defined.

Once you call the compiled chunk, it works because then the
global draw is defined.