On Wednesday, 28 May 2014 at 14:39:53 UTC, anonymous_me wrote:
The first line:

  int x2; // (at global scope)

The x2 resides in Thread Local Storage (TLS). A __gshared would put it in global scope.
Still initialized to int.init which is zero.

D doesn't have global scope. C++ does not do TLS but that isn't relevant to the no cost position that C++ is taking.

Reply via email to