Rename std.string.toStringz?

Kagamin spam at here.lot
Fri Jun 17 06:21:44 PDT 2011


Daniel Gibson Wrote:

>   char* to!c_str(string s) (or immutable(char)* or something)
> i.e. the related toImpl looks like
>   char* toImpl(c_str, string)(string s)
> => 3 types! (char*, c_str, string)

btw, if we're talking about C api, the return type must not be char*, because c string character encoding is not utf-8, but char* implies utf-8.


More information about the Digitalmars-d mailing list