This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Konlab's profile picture

How to create objects?

Started by Konlab, 18 May 2014 - 10:07 AM
Konlab #1
Posted 18 May 2014 - 12:07 PM
Please tell me how to create objects in lua (and please don't give me links!)
Thanks!
CometWolf #2
Posted 18 May 2014 - 12:09 PM

local obj = {}
Lyqyd #3
Posted 18 May 2014 - 12:10 PM
With code.

What is the objection to links? There is lots of valuable information to be found out there, such as the PIL, or the lua-users wiki. We're not here to spoon-feed you every iota of information about a given subject; you are responsible for putting in the effort to learn the subject matter from the materials provided. This is a subject that has been covered repeatedly in this section, so there are lots of topics here you could read through to learn more.

Edit: CometWolf, should've just left it at:


local obj

I think the table declaration is too helpful, in this case.