leading underscores..
Stephen Adler
adler at stephenadler.com
Sat Dec 2 08:52:15 EST 2006
Guys,
This is a programing question, so I hope you guys don't mind my posting
to this mailing list.
I've run across an issue about using underscores in variable names. I've
been writing software
under linux for the past 15 years and I've gotten into the habit of
using underscores in my
variables names for priviate variables in a class. I tried to compile my
code on Solaris
10 x86 using the gnu compiler and it threw errors because the compiler
didn't like the
leading underscore. Does anyone have any comments on this? If a leading
underscore
is not used to private variable and functions in classes, what the
coding standard to indicate
the variable belongs to the class your coding?
thanks. Steve.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Discuss
mailing list