Posted 27 April 2012 - 09:11 AM
A few days ago I started to get interested in computercraft.
So I looked up some information about LUA. I've programmed in various languages before.
I noticed that LUA isn't really a OO-language, however I'd like to have an OO-approach
I've started to write some code to get familiar with lua.
But before I start to write something for real, I'd like to know if I'm heading in the right direction.
The code I wrote has the effect I want, but it looks redundant.
TL;DR:
Could anyone look at my concept, and point me in the right direction to make it more elegant?
Code: http://pastebin.com/JH0BCFy3
Cheers,
Kaaz
So I looked up some information about LUA. I've programmed in various languages before.
I noticed that LUA isn't really a OO-language, however I'd like to have an OO-approach
I've started to write some code to get familiar with lua.
But before I start to write something for real, I'd like to know if I'm heading in the right direction.
The code I wrote has the effect I want, but it looks redundant.
TL;DR:
Could anyone look at my concept, and point me in the right direction to make it more elegant?
Code: http://pastebin.com/JH0BCFy3
Cheers,
Kaaz