lua-users home
lua-l archive

Re: How metatables could work on this?

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> How can a make this work? ...
I don't really know what you want, but I tried to guess...
If you add an additional comma on line 3, the script runs without error :
 self.model():show() => self:model():show()
> local loader = {}
By the way, this initialization is useless, since the 'loader'
variable gets a new value at the next instruction.

AltStyle によって変換されたページ (->オリジナル) /