<div dir="ltr"><div dir="ltr"><div dir="ltr">On Mon, Mar 25, 2019 at 4:00 PM FeepingCreature via Digitalmars-d <<a href="mailto:digitalmars-d@puremagic.com">digitalmars-d@puremagic.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">class Class<br>
{<br>
     Appender!(int[]) app = null;<br>
}<br>
<br>
This is the most evil bug I've seen this year yet.<br>
<br>
Hint: Appender is a struct, not a class. So what does "= null" <br>
do, when it appears as a default initializer?<br>
<br></blockquote><div><br></div><div>Yeah I remember this bug. But to be honest I believe it is already fixed, but few days ago I still write something like this to be sure:</div><div><div>class Class</div><div>{</div><div>     Appender!(int[]) app;</div><div>    </div><div>    this()</div><div>    {</div><div>        app = appender!(int[]);</div><div>    }</div><div>}</div></div></div></div></div>