Why does toStringz return an immutable(char)*?

Stewart Gordon smjg_1998 at yahoo.com
Sun Jun 19 13:28:29 PDT 2011


On 18/06/2011 11:52, Mafi wrote:
> Am 18.06.2011 10:36, schrieb Jonathan M Davis:
<snip>
> If anyone ever writes a function which needs immutable chars, toStringz just wroks for it.
<snip>

You mean a C function that keeps the pointer for later use, and relies on you not to 
change it?

Stewart.


More information about the Digitalmars-d mailing list