vsajip
Newcomer
For example, if you want to append an item item to a table t, you do
Why can you not do the following?
I mean I see that a basic table has no metatable, so I guess that's why - what I mean to ask is, why is that the case? Ditto for the other functions like pack, unpack etc.
Code:
table.insert(t, item)
Why can you not do the following?
Code:
t:insert(item)
I mean I see that a basic table has no metatable, so I guess that's why - what I mean to ask is, why is that the case? Ditto for the other functions like pack, unpack etc.
Last edited: