PDA

View Full Version : How do you format your flags?



xCav8r
06-17-2005, 08:20 PM
I've seen a lot of people's code who put their flags in all caps. I usually use psuedo-Hungarian, so I don't do that. I'm curious though to hear the perspective of the all-cappers. What's the advantage?

Howard Kaikow
06-29-2005, 02:13 PM
I've seen a lot of people's code who put their flags in all caps. I usually use psuedo-Hungarian, so I don't do that. I'm curious though to hear the perspective of the all-cappers. What's the advantage?

Choose whateve naming style you wish, there's no "right" way.

You see flags all upper case because many/most flags have merely been copied from win32api.txt, or C header files, or derivatives thereof, and it has become a de facto use.

The case does matter in languages other than VB. Other languages are case sensitive, so folkes tend to leave the case upper because ... [fill in using 32 words or less].