caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Hashtbl.remove legal within Hashtbl.iter for the same hash table?
@ 2008-05-11  9:20 David MENTRE
  2008-05-11 14:42 ` [Caml-list] " Florent Monnier
  2008-05-11 14:44 ` Julien Peeters
  0 siblings, 2 replies; 9+ messages in thread
From: David MENTRE @ 2008-05-11  9:20 UTC (permalink / raw)
  To: caml-list

Hello,

Probably a newbie question but anyway: is it allowed to do a
Hashtbl.remove while doing a Hashtbl.iter on the same hash table?

More precisely, at one point while doing a "Hashtbl.iter f h" my
function "f" is called with something like "f k v". Can I do a
"Hashtbl.remove h k" within the body of "f"?

Sincerely yours,
david
-- 
GPG/PGP key: A3AD7A2A David MENTRE <dmentre@linux-france.org>
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-05-12  9:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-11  9:20 Hashtbl.remove legal within Hashtbl.iter for the same hash table? David MENTRE
2008-05-11 14:42 ` [Caml-list] " Florent Monnier
2008-05-11 14:46   ` Till Varoquaux
2008-05-11 15:10     ` Florent Monnier
2008-05-11 22:45       ` Till Varoquaux
2008-05-11 23:08         ` Martin Jambon
2008-05-12  9:29         ` David MENTRE
2008-05-11 15:07   ` Florent Monnier
2008-05-11 14:44 ` Julien Peeters

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).