diff options
author | Ryan Roden-Corrent <ryan@rcorre.net> | 2023-01-06 08:21:01 -0500 |
---|---|---|
committer | Ryan Roden-Corrent <ryan@rcorre.net> | 2023-01-06 08:21:01 -0500 |
commit | 1f6a5e8bb123a3620161ee194175aef571147c30 (patch) | |
tree | 208c9f8b945db04f30d8d5b80c795cf0a0edb524 /thirdparty/amd-fsr | |
parent | b14f7aa9f92ff44135c283a9c88dab5ef9136d64 (diff) |
Warn against erasing array elements while iterating.
Erasing array elements while iterating does not appear to be safe.
For example, the following prints nothing:
```
var a := [0,1,2,3,4,5,6]
for i in a:
if i % 2 == 0:
a.erase(i)
else:
print(i)
```
While this is often true for array implementations, it still seems worth
documenting explicitly. I copied the wording from Dictionary.xml.
Diffstat (limited to 'thirdparty/amd-fsr')
0 files changed, 0 insertions, 0 deletions