No, it doesn't. Appending to a null array is equivalent to allocating a new array.<br><br><div class="gmail_quote">On Mon, May 14, 2012 at 6:29 PM, H. S. Teoh <span dir="ltr"><<a href="mailto:hsteoh@quickfur.ath.cx" target="_blank">hsteoh@quickfur.ath.cx</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Mon, May 14, 2012 at 05:00:25PM +0400, Gor Gyolchanyan wrote:<br>
> I think any kind of null array should be different from an array of<br>
> zero length.<br>
<br>
</div>But that defeats the utility of idioms like:<br>
<br>
        int[] arr;<br>
        arr ~= 123;<br>
        ...<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
T<br>
<br>
--<br>
There are four kinds of lies: lies, damn lies, and statistics.<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.<br>