[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How metatables could work on this?
- From: Patrick Rapin <toupie300@...>
- Date: Tue, 1 May 2012 19:59:28 +0200
> If you add an additional comma on line 3, the script runs without error :
> self.model():show() => self:model():show()
Sorry, I wanted of course to write a colon, not a comma !
For the record, the printed result with the correction is :
internal value
something something pseudo class proxy whateva!
Instead of:
lua: loader.lua:24: attempt to index local 'self' (a nil value)
stack traceback:
loader.lua:24: in function 'model'
loader.lua:3: in function 'execute'
loader.lua:20: in function 'control'
loader.lua:31: in main chunk
[C]: in ?