Originally Posted by SDPhantom
Pointer addresses can always be used to visually compare and see if any two pointers refer to the same address (functionally, no different than FuncA==FuncB). This is the same as any other by-reference value type.
|
Exactly. There's no point in storing it as a string. Just compare the function references.
Note the OP posted this as prototype code, not necessarily meant for actual use, but to explain a process in place by Blizzard. The actual code in place is in C code that checks the current execution taint instead of if the function pointer stored has changed.
|
Yes, I know. I've glanced through stock Lua 5 source and think I know how their taint tracker could be implemented. That doesn't answer my question: what would you do next if you detect a change? What's the practical point of this?