@Corjan I found a workaround for that specific issue with the '__index' metamethod referencing a table.
Instead of referencing the 'self' table
__index can also reference a function that does the indexing on the 'self' table:
Code: Select all
self.__index = function (_, key)
return self[key]
end
This is equivalent code. LUA does the same internally when encountering a table reference.
The debugger has no issue with this approach as it does not evaluate the function. Will use this one until your fix is released.