https://issues.dlang.org/show_bug.cgi?id=3999
Andrei Alexandrescu changed:
What|Removed |Added
Version|future |D2
--
http://d.puremagic.com/issues/show_bug.cgi?id=3999
--- Comment #9 from bearophile_h...@eml.cc 2012-05-28 13:58:33 PDT ---
See also Issue 8157 , that essentially is a subset of this issue.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving th
http://d.puremagic.com/issues/show_bug.cgi?id=3999
--- Comment #8 from Trass3r 2012-01-29 23:30:28 CET ---
More or less, that is.
--
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=3999
Trass3r changed:
What|Removed |Added
CC||mrmoc...@gmx.de
--- Comment #7 from Trass3r
http://d.puremagic.com/issues/show_bug.cgi?id=3999
--- Comment #5 from bearophile_h...@eml.cc 2011-08-25 02:19:30 PDT ---
One example of bug caused by the semantic sloppiness of D enums. This is
reduced code of a small game. The main contains a while that loops until the
game is finished.
The o
http://d.puremagic.com/issues/show_bug.cgi?id=3999
--- Comment #4 from bearophile_h...@eml.cc 2011-06-13 17:02:20 PDT ---
This is related. This code gives no compilation errors with DMD 2.053, but it's
a reduced version of code that has caused me some troubles:
enum Foo { A, B }
void main() {
http://d.puremagic.com/issues/show_bug.cgi?id=3999
--- Comment #3 from bearophile_h...@eml.cc 2010-09-01 15:13:03 PDT ---
This simple example shows a possible way to implement this (currently with dmd
2.048 this program runs firing no asserts):
enum V1 = 10;
enum { V2 = 20 }
enum : int { V2b =
http://d.puremagic.com/issues/show_bug.cgi?id=3999
--- Comment #2 from bearophile_h...@eml.cc 2010-08-31 18:38:56 PDT ---
See a discussion here:
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=116546
--
Configure issuemail: http://d.puremagic.com/issues/us
http://d.puremagic.com/issues/show_bug.cgi?id=3999
--- Comment #1 from bearophile_h...@eml.cc 2010-03-22 13:42:16 PDT ---
As div0 reminds me, the D docs state:
A named enum member can be implicitly cast to its EnumBaseType,
But I am not sure this is the best design.
--
Configure issuemail: h