How can I simulate a static if expression (not statement) in D?
auto foo = (({ static if (cond) { return altA; } else { return altB; })());
This works, but creates a delegate and ldc errors out if you nest delegates. I'm sure it can be done as an expr with some template magic, I'm just not good enough at it yet.