lua-users home
lua-l archive

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


My Question was wrong, sorry. See my self reply.
  : should become replaced by self:
and
  . should become replaced by self.

Ulrich

Am 19.04.2016 um 13:05 schrieb Javier Guerra Giraldez:
just use a shorter variable name as an alias:

---------- myverylongclassname.lua -----

local MyVeryLongClassname = class(....)
local C = MyVeryLongClassname

function C:method(...)
    .....
end

C.field = xxxxxx

....

return MyVeryLongClassname
------------------------------------------