[gambit-list] for each, hash table, order

Marc Feeley feeley at iro.umontreal.ca
Sat May 23 14:20:33 EDT 2009


On 23-May-09, at 9:58 AM, lowly coder wrote:

> i realize that order is fairly meaningless in the context of a  
> hashtable
>
> however, if i for-each twice through a hashtable, and there are no  
> writes (add or remove) to the hashtable in between them, am I, by  
> the way that gambit is implemented, guaranteed to hit the elemements  
> in the same order for the two times?
>

No.  If there is a garbage collection, things can be moved around in  
the table.

Marc




More information about the Gambit-list mailing list