[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Modifying a table while using next()
- From: "Alex Davies" <alex.mania@...>
- Date: Tue, 8 Apr 2008 19:45:19 +0800
----- Original Message -----
From: "Eike Decker"
Undefined behaviour means, that you might not iterate over all values in
loop for instance. I have no detailed information how the tables are
but I guess (no idea if this is right!) the behaviour becomes undefined,
the table is resized during traversial.
The current implementation leaves it undefined well before the table gets
Eg, sometimes the table will visit the new key as part of the traversal, and
other times it won't. (Depending on whether or not the new key was inserted
after or before the current position in the traversal). You're right about
everything in your post though I believe :)