Scott Meyers' DConf 2014 keynote "The Last Thing D Needs"
Kagamin via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Thu May 29 03:44:01 PDT 2014
On Thursday, 29 May 2014 at 02:38:56 UTC, Jesse Phillips wrote:
> Hoping someone can confirm or deny this thought.
>
> int x2prime = void; // (at global scope)
>
> Since x2prime is module variable, I would expect that the
> compiler will always initialize this to 0 since there isn't
> really a performance hit. Or is using void guarantee it won't
> get initialized (so much value in that guarantee)?
Depends on the implementation of tls, usually the .tls section is
initialized data.
More information about the Digitalmars-d-announce
mailing list