[Issue 6921] Request for a 'static final switch' statement
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Aug 5 15:42:08 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=6921
TeddyBear12311 at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |TeddyBear12311 at gmail.com
--- Comment #2 from TeddyBear12311 at gmail.com ---
It would also be nice to have a static final switch on a type tuple.
Essentially every type in the type tuple must have an equivalent case. I've ran
across a few bugs in my code due to the fact that I forgot a static if (T ==
sometype). It just fails silently. This happens when new types are added.
--
More information about the Digitalmars-d-bugs
mailing list