|--- |FIXED
--- Comment #18 from Dlang Bot ---
dlang/dlang.org pull request #2841 "fix Issue 5713 - Broken final switch on
ints" was merged into master:
- 9455b02ee18d49a05af695ed91cfbed84366de64 by Walter Bright:
fix Issue 5713 - Broken final switch on ints
https://github
https://issues.dlang.org/show_bug.cgi?id=5713
Walter Bright changed:
What|Removed |Added
Keywords|wrong-code |
--- Comment #17 from Walter Bright ---
It i
https://issues.dlang.org/show_bug.cgi?id=5713
--- Comment #16 from Walter Bright ---
What happens is the compiler inserts a default that throws an exception. This
is compatible with what the spec says. I added a clarification to the spec.
--
---
@WalterBright created dlang/dlang.org pull request #2841 "fix Issue 5713 -
Broken final switch on ints" fixing this issue:
- fix Issue 5713 - Broken final switch on ints
https://github.com/dlang/dlang.org/pull/2841
--
https://issues.dlang.org/show_bug.cgi?id=5713
Walter Bright changed:
What|Removed |Added
See Also||https://issues.dlang.org/sh
https://issues.dlang.org/show_bug.cgi?id=5713
--- Comment #14 from bearophile_h...@eml.cc ---
Another simple case worth supporting:
void main() {
foreach (immutable i; 0 .. 3) {
final switch (i) {
case 0: break;
case 1: break;
case 2: break;
http://d.puremagic.com/issues/show_bug.cgi?id=5713
--- Comment #13 from bearophile_h...@eml.cc 2012-12-26 04:13:35 PST ---
See also this thread:
http://forum.dlang.org/thread/hoczugrnzfbtvpnwj...@forum.dlang.org
I think this code should be supported, because here the compiler is able to
static
http://d.puremagic.com/issues/show_bug.cgi?id=5713
bearophile_h...@eml.cc changed:
What|Removed |Added
Severity|enhancement |major
--- Comment #12 from bea
http://d.puremagic.com/issues/show_bug.cgi?id=5713
Rene changed:
What|Removed |Added
CC||renedu...@yahoo.com.br
--- Comment #11 from Ren
http://d.puremagic.com/issues/show_bug.cgi?id=5713
yebblies changed:
What|Removed |Added
CC||yebbl...@gmail.com
--- Comment #10 from yeb
http://d.puremagic.com/issues/show_bug.cgi?id=5713
--- Comment #9 from bearophile_h...@eml.cc 2012-02-05 06:59:27 PST ---
Turning bugs into enhancement requests is a good way to reduce bug count, but
it doesn't address the problems.
"enhancement" sounds like something that someone wants to add
http://d.puremagic.com/issues/show_bug.cgi?id=5713
Denis changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Resolution|FIXED
http://d.puremagic.com/issues/show_bug.cgi?id=5713
Denis changed:
What|Removed |Added
CC||verylonglogin@gmail.com
--- Comment #7 fro
http://d.puremagic.com/issues/show_bug.cgi?id=5713
Walter Bright changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
Issue 5713 - Broken final switch on ints
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
http://d.puremagic.com/issues/show_bug.cgi?id=5713
--- Comment #5 from bearophile_h...@eml.cc 2011-09-07 10:15:54 PDT ---
An example from Timon Gehr, this gives no compilation errors, and prints
nothing:
import std.stdio;
enum Mode { nothing, read, write }
void main() {
final switch (Mode.
http://d.puremagic.com/issues/show_bug.cgi?id=5713
--- Comment #4 from bearophile_h...@eml.cc 2011-08-20 14:05:58 PDT ---
This code is a reduction of real code, with small changes. It shows why this
final switch brokeness makes final switch not as safe as advertised:
void main() {
enum Foo
http://d.puremagic.com/issues/show_bug.cgi?id=5713
--- Comment #3 from bearophile_h...@eml.cc 2011-05-26 15:57:36 PDT ---
See also bug 6060
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
http://d.puremagic.com/issues/show_bug.cgi?id=5713
--- Comment #2 from bearophile_h...@eml.cc 2011-03-07 16:17:51 PST ---
See also bug 5714
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
http://d.puremagic.com/issues/show_bug.cgi?id=5713
Stewart Gordon changed:
What|Removed |Added
Keywords||spec, wrong-code
CC|
20 matches
Mail list logo