Idioms you use
Adam D. Ruppe via Digitalmars-d
digitalmars-d at puremagic.com
Tue Sep 29 06:08:18 PDT 2015
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.
More information about the Digitalmars-d
mailing list