[Issue 16521] Wrong code generation with switch + static foreach
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Mar 9 12:06:14 PST 2017
https://issues.dlang.org/show_bug.cgi?id=16521
--- Comment #6 from Stefan Koch <uplink.coder at gmail.com> ---
Just because something is used in phobos does not it is correct.
this code is highly dubious because it goats people into believing that tuple
foreach actually works.
The right way to do this is to build a string for the switch and mix it in.
--
More information about the Digitalmars-d-bugs
mailing list