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

9 lines
127 B
D

import std.stdio;
void main()
{
int x = 5, y = 5;
bool which = true;
(which ? x : y) += 5;
assert(x == 10);
}