[Issue 1878] foreach does not handle integral types appropriately

2015-05-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1878 Lionello Lunesu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 1878] foreach does not handle integral types appropriately

2014-04-02 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=1878 --- Comment #6 from bearophile_h...@eml.cc 2014-04-02 04:16:33 PDT --- Currently this works: ubyte whatever() { return 10; } void main() { ubyte limit = whatever(); ubyte x; foreach (ubyte e; 0 .. limit) x = e; } -- Config

[Issue 1878] foreach does not handle integral types appropriately

2013-09-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1878 --- Comment #5 from github-bugzi...@puremagic.com 2013-09-12 22:03:13 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/565caec167fa303cb2320a2c6d8f957f06d07008

[Issue 1878] foreach does not handle integral types appropriately

2013-09-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1878 --- Comment #4 from Lionello Lunesu 2013-09-08 02:14:15 PDT --- I checked the difference between CondExp (?:) and ForeachRangeStatement. The former only has a special case when the types of the two expressions are equal. It would fix foreach(i

[Issue 1878] foreach does not handle integral types appropriately

2013-09-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1878 Lionello Lunesu changed: What|Removed |Added CC||lio+bugzi...@lunesu.com --- Comment

[Issue 1878] foreach does not handle integral types appropriately

2012-10-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1878 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Com

[Issue 1878] foreach does not handle integral types appropriately

2012-10-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1878 Andrej Mitrovic changed: What|Removed |Added CC||andrej.mitrov...@gmail.com --- Comme