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

Reply via email to