O
O. Zimmermann
Hi all,
A variable with an enumerated type can be set with a value from any
other generic "enum" type in the program, or with an integer value,
without notice to the user, neither at compilation nor at execution.
How can I make this IMPOSSIBLE (so that ONLY a value from the expected
enumerated type can be fed to the variable, with no implicit
conversion allowed ?).
Is "typedef enum" the way to go ?
Thanks for your insights - oz
A variable with an enumerated type can be set with a value from any
other generic "enum" type in the program, or with an integer value,
without notice to the user, neither at compilation nor at execution.
How can I make this IMPOSSIBLE (so that ONLY a value from the expected
enumerated type can be fed to the variable, with no implicit
conversion allowed ?).
Is "typedef enum" the way to go ?
Thanks for your insights - oz