switch()

Walter Bright newshound2 at digitalmars.com
Mon Feb 17 19:53:52 PST 2014


On 2/17/2014 6:38 PM, Manu wrote:
> I think 'final switch' should do that for you, and by typing final, you've
> intentionally covered the case. There's no room for mistake then.

That's why a default case is not allowed for a 'final' switch.


More information about the Digitalmars-d mailing list