Skip to content
#1851
Auto-translated
Epic. I often implemented frequently used functions for myself, such as table.insert/remove, and many mathematical ones, but I still had a long way to go before reaching this scale. I'll gladly read the source code.

Added 26 minutes later
By the way, I've been wondering about something for a while - for deleting an element from a table, the following construct is used:
foo[bar] = nil
I've read about it before, but my own experiments in Heroes showed that the size of the table doesn't change, meaning that if you use, for example, a loop to iterate through the elements:
for index, element in foo do
...
end
the deleted element will still be iterated over. This needs to be taken into account when working with the library (checking for nil), or is my approach to Lua simply too amateurish?

Statistics

Welcome our newest member: den

Users Online 3 users 1519 guests