Re: What are delimited string, heredoc and D token strings?

2010-06-28 Thread Pierre Rouleau
On 27/06/10 1:03 PM, bearophile wrote: Pierre Rouleau: In what sense? This is valid D1 code: import std.stdio; void main() { string s = "this is just a test"; writefln(s); } Bye, bearophile Thanks! -- Pierre

Re: What are delimited string, heredoc and D token strings?

2010-06-27 Thread Pierre Rouleau
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 st

Re: What are delimited string, heredoc and D token strings?

2010-06-27 Thread Pierre Rouleau
On 27/06/10 9:52 AM, Simen kjaeraas wrote: Pierre Rouleau wrote: Hi all, The D2.0 lexical page describes delimited string and token string literals. Is there any example of how these are used and why, somewhere? Token strings are added for the specific use case of string mixins[1]. They

Re: What are delimited string, heredoc and D token strings?

2010-06-27 Thread Pierre Rouleau
On 27/06/10 9:52 AM, Simen kjaeraas wrote: Pierre Rouleau wrote: Hi all, The D2.0 lexical page describes delimited string and token string literals. Is there any example of how these are used and why, somewhere? Token strings are added for the specific use case of string mixins[1]. They

What are delimited string, heredoc and D token strings?

2010-06-27 Thread Pierre Rouleau
Hi all, The D2.0 lexical page describes delimited string and token string literals. Is there any example of how these are used and why, somewhere? Thanks -- Pierre

rdmd does not compile under Windows?

2010-06-26 Thread Pierre Rouleau
All, The page http://www.digitalmars.com/d/2.0/rdmd.html of Jun 9 2010 states that rdmd does not compile for Windows. Is this still true? dmd 2.047 contains rdmd build 20090902 which does run under Windows XP/SP3. It does have a slight problem though: it waits for the user to press return a

dmd -o- -map prevents creation of map file?

2010-06-26 Thread Pierre Rouleau
Hi all, dmd 2.047 help states that the -map option switch "generate linker .map file". But when compiling a single (stand-alone) source file, dmd seems to generate the .map file even if the -map switch is not present. Is this wanted? Should it not simply generate the .map file only when the