/* 注意: このプログラムはコンパイルに失敗する可能性がある。 */ module pind.samples.ja.function_parameters.function_parameters_16; import std.stdio; import std.random; ref int pick(ref int lhs, ref int rhs) { return uniform(0, 2) ? lhs : rhs; // ← コンパイルエラー } void main() { int a; int b; pick(a, b) = 42; writefln("a: %s, b: %s", a, b); }