xxxxxxxxxx
import std.stdio;
auto qc(E1, E2)(bool condition, lazy E1 expr1, lazy E2 expr2)
{
if (condition)
{
return expr1;
}
else
{
return expr2;
}
}
void main()
{
qc(true, "A".writeln, "B".writeln);
string s;
qc(true, s = "A", s = "B");
s.writeln;
}