lua-users home
lua-l archive

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


> So luac does have the information about the main chunk and the compiled
> function. Is there any way to get this information using debug.* functions
> without calling luac or executing the code?

No. The function assigned to 'a' does not exist until the chunk is executed.

luac traverses internal data structures to do what it does.

So does my bytecode inspector library, lbci:
	http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/#lbci