lua-users home
lua-l archive

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


I like programming using OOP and it works quite well in Lua.
I don't miss anything related in lua, OK.

But sometimes when coding class methods and entering class names again and again, i feel a wish comes up:

Would it be possible to implement a shortcut usable inside class
methods, so i can write
  :method instead classname:method
and
  .field instead classname.field.

?

Ulrich.