caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Hashtbl.iter
@ 2001-10-17  6:17 Maya Ramanath
  2001-10-17  6:28 ` Jacques Garrigue
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Maya Ramanath @ 2001-10-17  6:17 UTC (permalink / raw)
  To: caml-list

Hi,

The question is with regard to Hashtbl.iter.  Basically, what happens when
I'm doing an iteration on the Hashtbl and at the same time add something
new to the hashtable ?  For ex:
	let xyz ht key value =
	  (* Do something with key, value *)
	  if (some-condition-holds) then
   	    ht.add something new

	let abc ht =
	  Hashtbl.iter (xyz ht) ht

I would like to know if the new things that I added to the hashtable will
be picked up by the iterator.
			- Maya


-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


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

end of thread, other threads:[~2001-10-17  8:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-17  6:17 [Caml-list] Hashtbl.iter Maya Ramanath
2001-10-17  6:28 ` Jacques Garrigue
     [not found] ` <9qj955$1l5$1@qrnik.zagroda>
2001-10-17  6:51   ` Marcin 'Qrczak' Kowalczyk
2001-10-17  8:30     ` Jacques Garrigue
2001-10-17  8:49 ` Fabrice Le Fessant

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).