roxen.lists.pike.general

Subject Author Date
Re: Iterators and deleting entries from mappings Martin Stjernholm <mast[at]lysator[dot]liu[dot]se> 15-01-2009
"Stephen R. van den Berg" <<srb[at]cuci.nl>> wrote:

> In Pike 7.8, what is supposed to happen when you use an iterator on
> a mapping, and then while iterating you delete entries from the mapping?

If the mapping changes while being iterated, the iterator might miss
elements, but it should not visit the same element more than once, and
if an element is present during the whole iteration then it should not
be missed. (Value changes in elements are irrelevant.)