On Tuesday, 29 September 2015 at 12:52:36 UTC, anonymous wrote:
Are there cases where `enum foo = {return bar;}();` works but `enum foo = bar;` doesn't? And if there are, aren't they compiler bugs?

If it is more complex than just one statement, putting it in a function lets you execute multiple lines (including loops and stuff) at once.

Reply via email to