Private enum members + Descent
Michel Fortin
michel.fortin at michelf.com
Sat Oct 24 16:22:51 PDT 2009
On 2009-10-24 18:45:10 -0400, Justin Johansson <no at spam.com> said:
> Let me try again. You have a set of N things which are represented by
> an enum definition. There is some subset of this set containing M
> things (so M < N) which represents the things meaningful in a public
> sense. The remaining Q=N-M members of the whole set are only meaningful
> to some internal processing so this subset containing Q members are
> designated private. I'm trying to think about this problem in an abstract
> way; sometimes giving concrete examples like Color colors (pun intended)
> the abstract problem.
Sounds like you want enum inheritance: one enum being a superset of
another. :-)
--
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/
More information about the Digitalmars-d
mailing list