[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: converting lua functions to strings
- From: Gavin Wraith <gavin@...>
- Date: Tue, 26 Nov 2002 10:53:08 +0000 (GMT)
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 (gavin@wraith.u-net.com)
Home page: http://www.wraith.u-net.com/