[Mono-bugs] [Bug 612858] Foreach over a generic dictionary is not ordered the same way under linux and windows

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jun 9 10:03:19 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=612858

http://bugzilla.novell.com/show_bug.cgi?id=612858#c1


Raja Harinath <harinath at hurrynot.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |harinath at hurrynot.org

--- Comment #1 from Raja Harinath <harinath at hurrynot.org> 2010-06-09 14:03:18 UTC ---
Hmm, the internal data structures do actually maintain the information in close
to insert order.  However, we'll need some cleverness to handle the case when
there are deletions.

If you can live with getting a totally different order in case you delete
anything from the hashtable, we should be able to fix this reasonably
trivially.

However, I'd probably change the implementation only if it's clean and acts as
a reasonable optimization.  Otherwise, we'll probably close this as NOTABUG,
since the iteration order of a Dictionary is undefined.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list