Difference between revisions of "30log"

m (Class keyword)
 
Line 2: Line 2:
 
{{#set:LOVE Version=Any}}
 
{{#set:LOVE Version=Any}}
 
{{#set:Description= A small and effective object-orientation framework in 30 lines}}
 
{{#set:Description= A small and effective object-orientation framework in 30 lines}}
 +
{{#set:Keyword=Class}}
  
 
'''30log''', in extenso ''30 Lines Of Goodness'' is a minified object orientation framework for Lua. <br/>
 
'''30log''', in extenso ''30 Lines Of Goodness'' is a minified object orientation framework for Lua. <br/>

Latest revision as of 23:04, 9 February 2015



30log, in extenso 30 Lines Of Goodness is a minified object orientation framework for Lua.
It features class creation, instantiation, inheritance and much more.
And it makes 30 lines. No less, no more.

A very simple sample:

class = require '30log'
Window = class { width = 100, height = 100, x = 10, y = 10}

appFrame = Window()
print(appFrame.x,appFrame.y) --> 10, 10
print(appFrame.width,appFrame.height) --> 100, 100



Grab it on Github.