[Issue 8903] Bad code for enum array members

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 31 06:40:51 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=8903



--- Comment #3 from Don <clugdbug at yahoo.com.au> 2013-01-31 06:40:49 PST ---
I don't think the code should compile. 'enum' should be declaring a manifest
constant, it shouldn't be possible to index it at run time. The whole point of
these enum constants was that they shouldn't appear in the executable!

If you want it to appear in the executable, use can use immutable or const.

This is a duplicate of another bug, I forget which one though.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list