lua-users home
lua-l archive

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

>Unfortunately not at the moment.  The parser relies on the fact that
>the GC will not be invoked during compilation.

The user function that is called by lua_load has this signature:

	typedef const char * (*lua_Chunkreader) (void *ud, size_t *size);

Note that it does *not* get a lua_State. But GC is not the only problem.
The real problem is that Lua code cannot be run during parsing; several
data structures are in a unfinished state.