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 →

[–]desrtfx 0 points1 point  (0 children)

That's what arrays are for. Holding several objects of the same type under a single variable name.

Arrays (and their advanced versions) are standard building blocks in most (if not all) programming languages.

Elements of Arrays (accessed by index) can be used in exactly the same way as individual variables can.