A function with a const(char)* argument can take an immutable(char)* just fine.<br><br><div class="gmail_quote">On Sat, Jun 18, 2011 at 3:36 AM, Jonathan M Davis <span dir="ltr"><<a href="mailto:jmdavisProg@gmx.com">jmdavisProg@gmx.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">The main purpose of toStringz is to turn a string into a char* which can be<br>
passed to a C function. C doesn't have immutable, and I don't see any gain in<br>
having toStringz return an immutable(char)* rather than a const(char)*. Does<br>
anyone know why it returns an immutable rather than a const? What possible<br>
benefit does that have?<br>
<font color="#888888"><br>
- Jonathan M Davis<br>
</font></blockquote></div><br>