Modulo Bug?

bearophile bearophileHUGS at lycos.com
Sat Aug 11 12:25:31 PDT 2012


Thiez:

> A few extra instructions (a CMOV followed by ADD should 
> suffice, yes?) seems like a small price to pay if it can 
> prevent bugs. Why hasn't the Python-modulo been made the 
> default back when D was designed?

Maybe because C99 requires that kind of modulus, and D tries to 
act as C99 where possible. It's sad.

Bye,
bearophile


More information about the Digitalmars-d mailing list