[Issue 13923] Specify guarantees on associative array iteration order volatility
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 21 13:12:35 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=13923
berni44 <bugzilla at d-ecke.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |bugzilla at d-ecke.de
Resolution|--- |INVALID
--- Comment #1 from berni44 <bugzilla at d-ecke.de> ---
Answer to your questiones: You have no guarantees.
"In particular, in a foreach loop the order in which the elements are iterated
is typically unspecified."
from https://dlang.org/spec/hash-map.html
--
More information about the Digitalmars-d-bugs
mailing list