On Friday, 4 April 2014 at 15:13:25 UTC, Bienlein wrote:
What I was actually looking for was how to get this to work:immutable int b = if(1 == 1) { return 123; } else { return 456; };But I'm happy enough with the solution through a delegate.
What bearophile said, or:immutable int b = {if(1 == 1) { return 123; } else { return 456; }}();