roxen.lists.pike.general

Subject Author Date
Iterators and deleting entries from mappings Stephen R. van den Berg <srb[at]cuci[dot]nl> 15-01-2009
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?

I.e. suppose I have a mapping m.
Is it guaranteed that:

	foreach(m; mixed key; mixed value)
	  m_delete(m, key);

will delete all elements from it?
Or is it sheer luck and implementationdependent that it actually
seems to work now?
-- 
Sincerely,
           Stephen R. van den Berg.
The ultimate Darwin Award winner:
Going first in a Russian roulette game with a normal gun (no revolver).