lua-users home
lua-l archive

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



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