Re: [Alephmodular-devel] Enum versus class?
Status: Pre-Alpha
Brought to you by:
brefin
|
From: Alexander S. <ast...@it...> - 2003-03-02 15:46:35
|
On Saturday, Mar 1, 2003, at 14:27 US/Eastern, 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>
Eww. Why not:
typedef enum Depth {depth_8bit = 8, depth_16bit = 16, depth_32bit = 32}
Depth;
|