If printf is used instead of writeln, then there's something seriously wrong with druntime in the first place. This is just ridiculous.<br><br><div class="gmail_quote">On Mon, May 14, 2012 at 9:38 PM, Alex Rønne Petersen <span dir="ltr"><<a href="mailto:xtzgzorex@gmail.com" target="_blank">xtzgzorex@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 class="im">On 14-05-2012 15:21, Gor Gyolchanyan wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
I thing the zero-terminated literal shtick is pointless. Literals are<br>
rarely passed to C functions, so we gotta use the std.utf.toUTFz  anyway.<br>
<br>
On Mon, May 14, 2012 at 5:03 PM, Christophe<br></div><div><div class="h5">
<<a href="mailto:travert@phare.normalesup.org" target="_blank">travert@phare.normalesup.org</a> <mailto:<a href="mailto:travert@phare.normalesup.org" target="_blank">travert@phare.<u></u>normalesup.org</a>>> wrote:<br>

<br>
    deadalnix , dans le message (digitalmars.D:167258), a écrit :<br>
     > A good solution would be to set the pointer to 0 when the length<br>
    is set<br>
     > to 0.<br>
<br>
    String literal are zero-terminated. "" cannot point to 0x0,<br>
    unless we drop this rule. Maybe we should...<br>
<br>
<br>
<br>
<br></div></div>
--<br>
Bye,<br>
Gor Gyolchanyan.<br>
</blockquote>
<br>
This is very false. I invite you to read almost any module in druntime. You'll find that it makes heavy use of printf debugging.<br>
<br>
That being said, dropping the null-termination rule when passing strings to non-const(char)* parameters/variables/etc would be sane enough (I think).<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
- Alex<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.<br>