Re: [Alephmodular-devel] Enum versus class?
Status: Pre-Alpha
Brought to you by:
brefin
From: Br'fin <br...@ma...> - 2003-03-02 07:12:55
|
In the end, the verdict on comp.lang.c++ was generally overblown, and I settled back to simply using an enum. However, temporary period with the class was useful. As it meant for a time I was in complete control of what could and couldn't be checked against the enum. The compiler helped point out the places in the code that really really needed to be updated. And most things just worked after backing out to a simple enum. -Jeremy Parsons On Saturday, March 1, 2003, at 02:27 PM, Br'fin wrote: > As part of dealing with abstracting the display stuff I found myself > wanting to back off a little and implement a BitDepth enum. Or > similar. So I've been dabbling with it, and in wanting some class > related foo I ended up developing the following: > > class BitDepth > [snip] > And I'm trying to figure out if this is appropriate or overblown. If > it's overblown then I should just fall back to using the enum by its > lonesome. > > -Jeremy Parsons |