Question for compiler gurus about compile-time strings

Steven Schveighoffer schveiguy at yahoo.com
Sat Dec 9 18:45:18 UTC 2017


I was thinking that all strings generated at compile-time have a 
null-terminator added. But then I thought, wait, maybe that's only 
specifically for string literals.

What is the true answer? If you generate a string, let's say via a CTFE 
call, does it have a null terminator?

-Steve


More information about the Digitalmars-d-learn mailing list