Beta D 2.071.2-b3
Martin Nowak via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Sat Sep 3 07:40:37 PDT 2016
On Wednesday, 31 August 2016 at 09:56:17 UTC, Johan Engelen wrote:
> (I can only think of complicated stuff that requires pretty
> much whole-program analysis to prove validity, and in that case
> adding `private` doesn't help any more)
Yes, it does help. As private prevents usage outside of a module
it allows to do some optimizations that required whole program
analysis otherwise, e.g. variables and functions can get internal
linkage, thus reducing loads/stores and indirect calls.
More information about the Digitalmars-d-announce
mailing list