Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
In the documentation for lua 5.1, the description of the next function says:
those. You can modify or delete existing elements, but you cannot add new ones.
In the docks for lua 5.3, I did not find such a remark (badly searched?), But in general, from a practical point of view, adding new elements to a table while iterating over it is a very bad idea.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question