What does C++ do better than D? - StackOverflow.com

bearophile bearophileHUGS at lycos.com
Mon Aug 1 12:14:31 PDT 2011


Kagamin:

> C++ has a better thought out type system.
> Nice joke.
> http://blog.llvm.org/2011/05/c-at-google-here-be-dragons.html

C++ compiled with Clang *is* better, because D doesn't catch this bug:
int kMaxDiskSpace1 = 10 << 30;

This is somewhat worse, because it gives even more false security:
long kMaxDiskSpace2 = 10 << 30;

I'll never agree that D is doing well enough here.

Bye,
bearophile


More information about the Digitalmars-d mailing list