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.
- switch case for constants-only? Nick Sabalausky
- Re: switch case for constants-only? Don
- Re: switch case for constants-only? Nick Sabalausky
- Re: switch case for constants-only? Steven Schveighoffer
- Re: switch case for constants-only? Nick Sabalausky
- Re: switch case for constants-only? Ellery Newcomer
- Re: switch case for constants-only? Nick Sabalausky
- Re: switch case for constants-o... Ellery Newcomer
- Re: switch case for constan... BCS
- Re: switch case for con... Steven E. Harris
- Re: switch case for constan... Nick Sabalausky
