[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: meta method __newindex for reassignment...
- From: "Duncan Cross" <duncan.cross@...>
- Date: Tue, 15 May 2007 01:17:43 +0100
Take a look at the __usedindex patch: http://lua-users.org/wiki/LuaPowerPatches
On 5/15/07, Brendan Dowling <firstname.lastname@example.org> wrote:
I'd like to make a system for catching errors in a somewhat large Lua
project (~14,000 lines of Lua). Specifically, I'd like to catch
reassignments of globals and entries in certain tables during the
initialization phase. However, the __newindex meta method does not
seem to get called for reassignments, only new assignments. This is
probably a pretty simple hack, but I didn't see it in a search of the
archives or a google search.
Embedded Systems Engineer