|
|
||
|
That works if you always want that behavior, but I'd like it to only return the nop function in particular cases.
If those "particular cases" depend on the table or index, then you can write
settagmethod(tag(object),"index", function (t,i) DO SOMETHING HERE end)
For example:
function ChatApp:draw() self:drawOutputText() ... end
function Socket:receive() ... self._delegate:?socket_received_(self, data) end
Steve