On Tue, 24 Nov 2009 09:27:22 -0500, Steven Schveighoffer <[email protected]> wrote:
This stomping becomes more of a problem for library writers:

char * toStringZ(string s)
{
    s ~= '\0';
    return s.ptr;
}

Apologies, this should be written:

immutable(char) * toStringZ(string s)


-Steve

Reply via email to