The more interesting question

Gor Gyolchanyan gor.f.gyolchanyan at gmail.com
Mon May 14 06:21:42 PDT 2012


I thing the zero-terminated literal shtick is pointless. Literals are
rarely passed to C functions, so we gotta use the std.utf.toUTFz  anyway.

On Mon, May 14, 2012 at 5:03 PM, Christophe <travert at phare.normalesup.org>wrote:

> deadalnix , dans le message (digitalmars.D:167258), a écrit :
> > A good solution would be to set the pointer to 0 when the length is set
> > to 0.
>
> String literal are zero-terminated. "" cannot point to 0x0,
> unless we drop this rule. Maybe we should...
>



-- 
Bye,
Gor Gyolchanyan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120514/ff226e99/attachment.html>


More information about the Digitalmars-d mailing list