switch case for constants-only?

Nick Sabalausky a at a.a
Sat Dec 5 13:08:00 PST 2009


I just noticed in D1 that the values for the cases in a switch must be known 
at compile-time (btw, the docs don't seem somewhat vague on that). Is this 
also true in D2? If so, I don't suppose we could get that changed before the 
book? It's a real PITA for dynamic code. 





More information about the Digitalmars-d mailing list