[Issue 10381] Nonsense associative array comparison

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 8 15:58:44 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10381


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #2 from bearophile_hugs at eml.cc 2013-07-08 15:58:43 PDT ---
(In reply to comment #1)
> IMO, comparing AA's with < should be a compile-time error. AA's are unordered
> so it makes no sense to use < to compare them.

There are some meaningful (and occasionally useful) operations done on whole
associative arrays, like testing if the keys of an associative array are a
subset (or strict subset) of the keys of another associative array. But
probably it's not the best idea to use < to perform similar set comparisons...

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list