module pind.samples.ja.functions_more.functions_more_2; int greater(int first, int second) { return (first > second) ? first : second; } import std.stdio; void main() { int a = 1; int b = 2; int result = greater(a, b); result += 10; // ← aもbも変化しない writefln("a: %s, b: %s, result: %s", a, b, result); }