lua-users home
lua-l archive

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

On Mon 25 Nov, xenarcher wrote:
> Is there a way to convert a Lua function to a string, either in Lua 
> or C code? I'd like to extract the name of a Lua function from the 
> first-class function value.

Lua functions do not have names! What is the name of
"function (x) return x*x end" ? Maybe you could
convert a function value to the string value of
its disassembly into Lua bytecodes.

Gavin Wraith (
Home page: