lua-users home
lua-l archive

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

> On 2008/9/15 Brian Weed wrote:
>> I'm looking for a way to get the source string of a function from Lua

This question does come up occasionally:

I've seen some JavaScript implementations store the full source of
each function in memory like this.  Another solution would be to store
char indices, rather than just line indices, in the debug info with
the file name (assuming the function was loaded from a file).