Advertisement

Does anyone use the underscore for...

Started by December 13, 2000 12:06 PM
12 comments, last by Dire.Wolf 24 years ago
Wilka,

Oh fine, be that way

In regards to C99 and standards, I''m curious about that too. Where do you get information on the C++ standard?

Thanks,

Dire Wolf
direwolf@digitalfiends.com
[email=direwolf@digitalfiends.com]Dire Wolf[/email]
www.digitalfiends.com
underscore in front does conflict with the compiler (at least for VC++). Try putting the underscore behind instead.

Advertisement
underscore in front does conflict with the compiler (at least for VC++). Try putting the underscore behind instead.

quote: Original post by NuffSaid

I thought prefixing variables/functions with _ would invade the compiler''s namespace?



Only if the character following the underscore is capitalized or another underscore. However, various compilers may not follow that strictly, so I usually avoid the underscore as a prefix altogether.

If I really feel the need for an underscore, I''ll use it as a suffix; generally, I don''t prefix variables with "_" or "m_" at all.


---- --- -- -
Blue programmer needs food badly. Blue programmer is about to die!
---- --- -- -
New York. New York. New York. Texas. Texas. New York. New York. Canada.
---- --- -- -

This topic is closed to new replies.

Advertisement