Otherwise, you should stop polluting the global namespace, and do things as suggested in Programming 101 class: "never pollute the global namespace unless it is absolutely necessary." I have never yet personally come across any situation where it has been necessary to pollute the global namespace with an enum variable. Then again, I do not know everything, so I am sure there are situations where it may be necessary.

Leave a comment: