3 ms·
D solves this particular problem in a simpler way: it has a `final switch` block, which forces the case set to be complete. It doesn't have arbitrary boolean ex
by CyberShadow 12y ago
D solves this particular problem in a simpler way: it has a `final switch` block, which forces the case set to be complete. It doesn't have arbitrary boolean expressions as seen here, but it does add an interval syntax.
http://dlang.org/statement.html#FinalSwitchStatement http://dlang.org/statement.html#FinalSwitchStatement
http://dlang.org/statement.html#CaseRangeStatement http://dlang.org/statement.html#CaseRangeStatement