Detecting inadvertent use of integer division
Don
nospam at nospam.com
Mon Dec 14 04:46:57 PST 2009
bearophile wrote:
> Don:
>> In the opPow thread there were a couple of mentions of inadvertent
>> integer division, and how Python is removing this error by making /
>> always mean floating-point division, and introducing a new operator for
>> integer division.
>
> In Pascal too (and OCaML, but the situation is different) they are separated. I think here having two operators is better,
Why?
Niklaus Wirth was right again (but I don't know if D can grow another
division operator, it's unlikely).
>
> Bye,
> bearophile
More information about the Digitalmars-d
mailing list