ctconst is a fictional keyword that denotes compile-time constants. Now
you are probably able to see that there is no correlation between the n
and Color.
In D they are using the same keyword by accident, probably because
Walter thinks that saving a keyword is more important than keeping the
semantics tidy.
So today you are probably struck with using "enum" to define
compile-time constants.
The C++0x design group has not introduced the "enum class" for fun,
their strong typing nature is useful to make the code less bug-prone.
See:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1719.pdf
See for example "Problem 1: Implicit conversion to an integer".
Bye,
bearophile
Another taste discussion? Enum, again for "my taste" a great find for the
job.
Bugs aside, i can't seem to follow you.
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/