This seems like what could be a common cause of bugs
Jacob Carlborg
doob at me.com
Sat Jul 9 03:36:27 PDT 2011
On 2011-07-09 01:03, Steven Schveighoffer 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
Yes, please remove it.
--
/Jacob Carlborg
More information about the Digitalmars-d-learn
mailing list