Mail Archives: djgpp/1998/07/19/15:16:31
I wrote in message <35b19846 DOT 0 AT news DOT mountain DOT net>...
> Hi, if I'm being boneheaded about something please hurry to tell me.
>Aren't enums supposed to be distinct types, with their element names
>overloaded?
>
...etc.
Rest and reflection tell me I was applying the C++ change for struct to
enum. What i was trying to do should look more like this:
struct definiteAnswer{
enum dA{no,yes};
dA answer;
};
struct anyAnswer{
enum aA{no,yes,maybe};
aA answer;
};
...and so on.
Boneheadedness is easier to fix than bugs ;)
--TML--
- Raw text -