[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: source of declared variable
- From: Dirk Laurie <dirk.laurie@...>
- Date: Wed, 14 Aug 2013 12:36:24 +0200
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.