Re: source of declared variable
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: source of declared variable
- From: "Victor Bombi" <sonoro@...>
- Date: 2013年8月14日 13:08:42 +0200
If it's in the global namespace, you could write a __newindex metamethod
that keeps track of the line from which it is called.
Do you mean a metamethod for _G ?
I dont understand how to get the line, the methametod just receives (table,
key, value)
The overheads would be
horrendous, though.
I would not mind because I would do it in a separate lane at the beginning
of the application
victor