<div dir="ltr">s/buf/bug/</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 22, 2017 at 3:52 PM, Daniel Kozak <span dir="ltr"><<a href="mailto:kozzi11@gmail.com" target="_blank">kozzi11@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Tue, Aug 22, 2017 at 2:20 PM, Moritz Maxeiner via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_8524518071090275074HOEnZb"><div class="m_8524518071090275074h5"><span class="">On Tuesday, 22 August 2017 at 11:50:50 UTC, Jonas Mminnberg wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">...
</blockquote>
<br></div></div><span class="">
I agree that it can be confusing if you try to read it with C++ semantics [1]; the solution, however, imho is not to change D semantics or throw warnings [2], but to refer to the D spec [3], which states that static initialization of class members is used instead of default initialization (before any constructors are run). To me that means a statically initialized class field shall have the same value in all class instances, i.e. it's not silent sharing, you explicitly requested the sharing.<br></span></blockquote><div><br></div><div>What? D spec does say nothing about sharing, its only speak about order, nothing else. So it is a buf from my POV. </div></div></div></div>
</blockquote></div><br></div>