Re: Hashtable iter/remove

From: Xavier Leroy (Xavier.Leroy@inria.fr)
Date: Wed Mar 29 2000 - 15:25:00 MET DST

  • Next message: Brian Rogoff: "Re: to have labels or not"

    > Hashtables are mutable objects. What happens if
    > I iterate over a hashtable, applying Hashtble.remove
    > to (some of) the elements? Will this work?

    It will work in the sense that nothing will crash and you hashtable
    will remain in a consistent state. However, some of the (key,data)
    pairs you removed with Hashtbl.remove may still be presented later to
    your iterated function.

    - Xavier Leroy



    This archive was generated by hypermail 2b29 : Wed Mar 29 2000 - 19:26:49 MET DST