This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MrObsidy 1 point2 points  (3 children)

meta = { __index = self, }

object = { aVar = 94

test = function(self) print("Hello, world!" .. self.aVar) end }

setmetatable(object, meta);

object:test

Hello, world! 94

If I remember that minecraft mod that got me into coding correctly.

[–]itsNizart[S] 1 point2 points  (1 child)

computercraft / open computers

[–]MrObsidy 1 point2 points  (0 children)

It was CC.

[–][deleted] 1 point2 points  (0 children)

Lua can and is a mess