Array bound checks removal increasing importance

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Sat May 31 23:36:42 PDT 2014


Daniel Murphy:

> There are cases where it should be able to tell without data 
> flow analysis but are currently not implemented.

Such cases are not rare:

https://issues.dlang.org/show_bug.cgi?id=10594
https://issues.dlang.org/show_bug.cgi?id=10615
https://issues.dlang.org/show_bug.cgi?id=10749
https://issues.dlang.org/show_bug.cgi?id=10751
(There is one more of similar suggestions).

In general in your D code use immutable/const everywhere you can.

Bye,
bearophile


More information about the Digitalmars-d mailing list