Tips from the compiler

bearophile bearophileHUGS at lycos.com
Mon Oct 18 14:08:16 PDT 2010


Don:

> The problem is, once you have an "optional warning" in a compiler, they 
> are NOT optional. All standard or pseudo-standard libraries MUST comply 
> with them.

The topic of this thread is about tips, compiler comments that are meant to be kept usually disabled that are useful to avoid bugs or improve code performance, etc. When you include other D libraries you keep them disabled, because you don't care to know that in your code there are 35 functions where using an Appender may improve code performance a tiny bit. Such tips are useful only in some situations, like when you look for bugs in a function or when you need to tune its performance.

Bye,
bearophile


More information about the Digitalmars-d mailing list