This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This introduces a change in the way in which "for-in" loops work by introducing the concept of iterators. These kind of loops now accept an iterator that will return a sequence of values. Besides the integer ranges (N..M) and integer enumerations (X,Y,Z), this kind of loops now accepts other kinds of iterables, like arrays. This allows conditions like the following one: for any section in pe.sections: ( section.name == "foo" ) Until now the same expression was written as: for any i in (0..pe.number_of_sections - 1): ( pe.sections[i].name == "foo" ) The new syntax is more legible and opens door for more powerful features in the future. Backward compatibility is maintained.
- Loading branch information