lua-users home
lua-l archive

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


> -- self explicitly included in parameter list: OK
> function object.goodmethod1(self) print(self) end
>
> -- self implicitly included in parameter list: OK
> function object:goodmethod2() print(self) end
>
> -- self refers to a global, probably not what was intended!
> function object.badmethod() print(self) end

Global self is already on my list of "inspections". It is an insidious error.