Why does this work?

Vladimir Panteleev vladimir at thecybershadow.net
Thu Feb 17 19:57:14 PST 2011


int foo;
enum bar = foo+2;

void main()
{
	foo = 7;
	assert(bar == 9);
}

-- 
Best regards,
  Vladimir                            mailto:vladimir at thecybershadow.net


More information about the Digitalmars-d mailing list