Hallo, Claude Heiland-Allen hat gesagt: // Claude Heiland-Allen wrote:
Frank Barknecht wrote:
Anyone with good explanations?
M is the class, self is the instance.
function M:in_1(sel, atoms) if sel == "gem_state" then M:render(self) end end
Try replacing M:render(self) with self:render() ?
Ah, of course, as x:y() is syntactical sugar for x.y(x) I need to use self:render() to get self.render(self). ..
So no need to test, it's a silly bug in my code.
Ciao