RE: [Plib-devel] PLIB developers needed.
Brought to you by:
sjbaker
|
From: Paul B. <pbl...@di...> - 2000-08-10 06:32:15
|
>From: Dave McClurg [mailto:Dav...@dy...] >Subject: RE: [Plib-devel] PLIB developers needed. > > for private functions, use all_lower_case unless they would > pollute the name space in which case you should use _xxMixedCase > (note the leading underscore). if a variable pollutes the name > space, use _xxMixedCase. Note that this technically goes against the portability aspect of PLIB as identifiers in the global and std:: namespaces starting with '_' and '__' are reserved for the implementation in ANSI C++. http://oakroadsystems.com/tech/cppredef.htm#Groups I know it is used by alot of code and I do it too, but I thought it should at least be known. I get killed by it everytime I write a header file: #ifndef __Foo_h__ #define __Foo_h__ #endif is discouraged (because the two leading underscores) as the implementation (compiler) may legally predefine those values. Paul |