April 02, 2014 [Issue 1878] foreach does not handle integral types appropriately | ||||
---|---|---|---|---|
| ||||
https://d.puremagic.com/issues/show_bug.cgi?id=1878 --- Comment #6 from bearophile_hugs@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; } -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation