Text in D article

Jarrett Billingsley kb3ctd2 at yahoo.com
Sat Nov 18 08:26:35 PST 2006


"Daniel Keep" <daniel.keep.lists at gmail.com> wrote in message 
news:ejn63u$1v79$1 at digitaldaemon.com...

> Very true.  I suppose I *should* say that literals are NUL-terminated,
> but I want to make it perfectly clear that relying on this is a bad
> idea; is it accepted practice to simply treat all strings as if they
> were possibly non NUL-terminated?

Is null-termination of string literals even part of the D spec?  Or is it 
entirely up to the implementation?  If the latter, then I'd put something in 
there about it, saying that it can't even be relied on.. 





More information about the Digitalmars-d mailing list