This seems like what could be a common cause of bugs

Andrej Mitrovic andrej.mitrovich at gmail.com
Fri Jul 8 16:34:47 PDT 2011


On 7/9/11, Steven Schveighoffer <schveiguy at yahoo.com> wrote:
> On Fri, 08 Jul 2011 18:47:55 -0400, Andrej Mitrovic
> <andrej.mitrovich at gmail.com> wrote:
>
>> On 7/9/11, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:
>>>     double step = 1 / width;   // or .1
>>
>> Woops that should have been `1.`. See, another bug right there!
>
> 1.0
>
> 1. is a horrible legacy thing, and should be removed.
>
> -Steve
>

I get tempted to use it because it's there and then get shot in the foot. :)


More information about the Digitalmars-d-learn mailing list