lua-users home
lua-l archive

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

So you don't have to write self repeatedly in methods, you can write:

  function myclass.mymethod(_ENV, arg1, arg2)
    slot1 = arg1 + arg2
    slot2 = arg1 - arg2

This requires you to import all the functions and modules you use into locals so they can be accessed as upvalues.

f.anthony.n.finch  <>