[Issue 13489] Boolean semantics of floating point types should use "<> 0"

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Sep 18 01:20:07 PDT 2014


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

Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com

--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
Also important to note is how easy a refactoring could produce invalid code. If
you use integers in your code and if statements, and you decide to switch to
floating-point (say to represent a fraction of a second for a time variable)
you can easily end up with faulty code like that.

--


More information about the Digitalmars-d-bugs mailing list