Just compile this, run it, and have a laugh:
import std.stdio;
void main()
{
double a = 1, b = 2;
enum c = a + b;
writeln(c);
a = 2, b = 3;
writeln(c);
}
Comment #1 by jarrett.billingsley — 2008-10-12T15:36:05Z
It's a macro! Weee!
Comment #2 by k.hara.pg — 2011-06-19T04:02:22Z
On trunk dmd (d36b3b12fc4814e59f3a0d680b8700e787b1ceff),
----
test.d(6): Error: variable a cannot be read at compile time
test.d(6): Error: variable b cannot be read at compile time
----
It seems to me that this issue has been resolved.