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...") |
m (Class keyword) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{#set:Name=30log}} | {{#set:Name=30log}} | ||
− | {{#set:LOVE Version= | + | {{#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.