[Issue 9065] Please consider adding these std.traits
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 27 04:14:31 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9065
--- Comment #26 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-11-27 04:14:28 PST ---
(In reply to comment #24)
> What the compiler calls stuff internally has no bearing on
> what users of the language will call things.
It's not an internal thing, that declaration is not an enum declaration,
period. enum is used as a keyword for more than one thing, which is bad, but
it's too late to change it now.
We shouldn't name things in Phobos based on what people might think is right or
looks right, but based on what the things really are.
It's a shame we don't have a 'manifest' keyword of some sort, it would help
avoid confusion. I guess 'enum' was used to cut back on having too many
keywords in the language.
Anyway it's documented behavior, see "manifest constants" here (it's at the
bottom): http://dlang.org/enum.html
--
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