[Issue 2792] Enum manifest constants and string produces errors
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 3 12:23:13 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2792
------- Comment #1 from gide at nwawudu.com 2009-04-03 14:23 -------
Another example.
import std.stdio;
void main()
{
enum members = ["foo", "bar"];
writefln(members[0]); // works fine
writefln(members[1]); // works fine
for (uint i=0; i<2; i++) {
writefln(members[i]); // ERROR
}
}
--
More information about the Digitalmars-d-bugs
mailing list