[GEM-dev] Lua again: now with luaglut/luagl

Frank Barknecht fbar at footils.org
Wed Nov 28 14:38:29 CET 2007


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
-- 
Frank




More information about the GEM-dev mailing list