What are delimited string, heredoc and D token strings?

Pierre Rouleau prouleau001 at gmail.com
Sun Jun 27 09:32:33 PDT 2010


On 27/06/10 11:36 AM, bearophile wrote:

> But keep in mind that normal D string literals can span more than one line :-)

In what sense? In the sense that adjacent strings are concatenated? If I 
want to create a string literal that embeds new line without explicitly 
placing a '\n' inside the string, I did not see any other way than using 
the delimited string (at least inside 
http://www.digitalmars.com/d/2.0/lex.html).  What am I missing?

-- Pierre


More information about the Digitalmars-d-learn mailing list