toStringz and toUTFz potentially unsafe

Vladimir Panteleev vladimir at thecybershadow.net
Mon Jul 25 06:54:43 PDT 2011


On Mon, 25 Jul 2011 05:09:17 +0300, Jonathan M Davis <jmdavisProg at gmx.com>  
wrote:

> If you always append a '\0', then there's no point to toStringz at all.

Semantics? toStringz(s) is much more readable than (s~'\0').ptr

-- 
Best regards,
  Vladimir                            mailto:vladimir at thecybershadow.net


More information about the Digitalmars-d mailing list