In ICC, some static analysis is even used to optimize out the test before the switch.
In D, final switch might enable such an optimization with statically checking for out-of-enum values.
In ICC, some static analysis is even used to optimize out the test before the switch.
In D, final switch might enable such an optimization with statically checking for out-of-enum values.