Rename std.string.toStringz?
Adam D. Ruppe
destructionator at gmail.com
Thu Jun 16 12:16:30 PDT 2011
Jonathan M Davis wrote:
> stringz is neither a type nor a word.
It *is* a word. A stringz is a string that ends in zero. This
family of traditional names (STRINGZ, ASCIZ, etc.) predates C itself.
On the other hand, there is *no such thing* as a StringZ. You'd
never call it a "string zero". You'd call it a "zero terminated
string", or maybe a "C string".
Changing it to "toCString" is completely pointless, a cost without
a benefit, but at least it's not a completely nonsensical name like
toStringZ.
More information about the Digitalmars-d
mailing list