Difference between revisions of "30log"

(Created page with "{{#set:Name=30log}} {{#set:LOVE Version=any}} {{#set:Description= A small and effective object-orientation framework in 30 lines}} '''30log''', in extenso ''30 Lines Of Goodness...")
 
Line 1: Line 1:
 
{{#set:Name=30log}}
 
{{#set:Name=30log}}
{{#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}}
  

Revision as of 12:02, 14 November 2012



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.