Why does this work?

Don nospam at nospam.com
Thu Feb 17 22:11:01 PST 2011


Vladimir Panteleev wrote:
> int foo;
> enum bar = foo+2;
> 
> void main()
> {
>     foo = 7;
>     assert(bar == 9);
> }
> 
It's bug 2414 "enum is dynamically evaluated, yum"


More information about the Digitalmars-d mailing list