lua-users home
lua-l archive

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


2013/8/14 steve donovan <steve.j.donovan@gmail.com>:
> On Wed, Aug 14, 2013 at 9:38 AM, Victor Bombi <sonoro@telefonica.net> wrote:
>>
>> May I take the mailing list silence as a no?
>>
>
> You can only do this with functions, unfortunately, since they have debug
> line information.
>
> More than that needs source and/or bytecode analysis, AFAIK.

If it's in the global namespace, you could write a __newindex metamethod
that keeps track of the line from which it is called. The overheads would be
horrendous, though.