On C/C++ undefined behaviours

bearophile bearophileHUGS at lycos.com
Fri Aug 20 13:33:03 PDT 2010


dsimcha:

>if you really care about performance you're gonna use dirty tricks in a few key hotspots.<

I agree. The BIG problem is that currently you can't do that in D2. In D all code is unsafe (I am talking about numeric safety, like integer overflows, etc), not just few hospots where you have asked the compiler more freedom to use unsafe tricks and where you are taking extra care to avoid bugs (or you are using unsafe but long tested library code).

Bye,
bearophile


More information about the Digitalmars-d mailing list