Глава 2 закончена
This commit is contained in:
parent
42b2af19c0
commit
09dc3df444
18 changed files with 261 additions and 1 deletions
10
02-основные-типы-данных-выражения/src/chapter-2-3-12-1/app.d
Normal file
10
02-основные-типы-данных-выражения/src/chapter-2-3-12-1/app.d
Normal file
|
@ -0,0 +1,10 @@
|
|||
import std.stdio;
|
||||
|
||||
void main()
|
||||
{
|
||||
auto a = "какая-то строка";
|
||||
auto b = a; // a и b ссылаются на один и тот же массив
|
||||
a is b && writeln("Ага, это действительно одно и то же.");
|
||||
auto c = "какая-то (другая) строка";
|
||||
a is c || writeln("Действительно... не одно и то же.");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue