Static enum?
#1

So I am creating an include which has a couple of enums.
Looking at the Keywords page I don't see any way to declare a static/private enum. Is there any other way to make sure the enum can not be used outside the file in which it is declared? Not that it will cause any conflicting behaviour in the include if the enum is used in a variable outside the file, because the variable created with it doesn't interact with the functionality in the include, but I was just wondering.
Reply
#2

Nope. An enum also does not contain variables. It is merely an enumerated (hence the name) list of constants.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
Nope. An enum also does not contain variables. It is merely an enumerated (hence the name) list of constants.
Ok thanks .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)