lua-users home
lua-l archive

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


Oh! Big move for OOP-like programming style.

<lua>

class_instance = Class{parameter = value}

function class_instance:initialize()
         --...
end

function class_instance:method()
         globals in self

         initialize()
end

</lua>

--Denq