https://issues.dlang.org/show_bug.cgi?id=13420

Martin Nowak <c...@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |c...@dawg.eu
         Resolution|---                         |WONTFIX

--- Comment #10 from Martin Nowak <c...@dawg.eu> ---
> Maybe the AA implementation should assert that keys added to it should be 
> equal to themselves.

Sorry for breaking your code, but this check seems exaggerated.
An AA implementation has to rely on a working equality comparison and hash.

As floats are builtin types we should special case the AA implementation to
perform some extra checks, e.g. disallow NaN as key value.
See bug 13581 for an enhancement request.

> b) float.compare(x, y) can return -1 or 1 even when x or y is inf or nan!
> 
> I think we need another bug report for b)... (will add)

Reference?

--

Reply via email to