digitalmars.D.learn - Does D have a Verbatim String Literal?
- Bennie Copeland (3/3) Mar 29 2012 For example in C# I can write @"Hello \t World"; and it will
- simendsjo (8/11) Mar 29 2012 There are two ways:
- Bennie Copeland (2/13) Mar 29 2012 Awesome. Thank you.
print "Hello \t World" exactly without requiring me to escape the \t. Does D have a similar feature?
Mar 29 2012
On Thu, 29 Mar 2012 11:15:21 +0200, Bennie Copeland <mugen.kanosei gmail.com> wrote:"Hello \t World" exactly without requiring me to escape the \t. Does D have a similar feature?There are two ways: import std.stdio; void main() { writeln(r"Hello \t World"); writeln(`Hello \t World`); }
Mar 29 2012
On Thursday, 29 March 2012 at 09:18:38 UTC, simendsjo wrote:On Thu, 29 Mar 2012 11:15:21 +0200, Bennie Copeland <mugen.kanosei gmail.com> wrote:Awesome. Thank you.print "Hello \t World" exactly without requiring me to escape the \t. Does D have a similar feature?There are two ways: import std.stdio; void main() { writeln(r"Hello \t World"); writeln(`Hello \t World`); }
Mar 29 2012