dlang-book/02-основные-типы-данных-выр.../src/chapter-2-2-5-1/app.d

21 lines
514 B
D
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import std.stdio;
void main()
{
auto a = r"Строка с \ и " ~ `"` ~ " внутри.";
auto b = r"c:\games\Sudoku.exe";
auto c = r"ab\n";
auto d = q"[Какая-то строка с "кавычками", `обратными апострофами` и [квадратными скобками]]";
auto e = q"/Просто строка/";
auto f = q"EOS
This
is a multi-line
heredoc string
EOS";
auto g = q{ foo(q{hello}); };
// auto h = q{ № };
// auto i = q{ __EOF__ };
}