[Issue 3999] Enum equality to an int

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3999 Andrei Alexandrescu changed: What|Removed |Added Version|future |D2 --

[Issue 3999] Enum equality to an int

2012-05-28 Thread d-bugmail
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

[Issue 3999] Enum equality to an int

2012-01-29 Thread d-bugmail
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: ---

[Issue 3999] Enum equality to an int

2012-01-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3999 Trass3r changed: What|Removed |Added CC||mrmoc...@gmx.de --- Comment #7 from Trass3r

[Issue 3999] Enum equality to an int

2011-08-25 Thread d-bugmail
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

[Issue 3999] Enum equality to an int

2011-06-13 Thread d-bugmail
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() {

[Issue 3999] Enum equality to an int

2010-09-01 Thread d-bugmail
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 =

[Issue 3999] Enum equality to an int

2010-08-31 Thread d-bugmail
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

[Issue 3999] Enum equality to an int

2010-03-22 Thread d-bugmail
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