"Walter Tross" <walter@waltertross.com> wrote in message
news:ovg0909nq4sqbk8i1t4pm76hvtuvso2kiq@4ax.com...[color=blue]
> Somebody with a very regulatory mind in this newsgroup has written
> that it's better not to use a leading underscore for class member
> names, because names with a leading underscore are used internally by
> compilers (well, not so internally, since they appear in header
> files).
> I personally use the leading underscore (followed by a lower case
> letter), which I consider to be much more readable than the trailing
> underscore.
> My reasoning is that scope resolution works, and if I should get a
> clash with a macro (very unlikely, since macros are usually uppercase)
> it almost certainly would result in something which won't compile
> (could in exceptional cases cause a nuisance when porting to another
> platform, but compared with other nuisances...)
> Am I wrong?
>[/color]
Two leading underscores or a leading underscore followed by a capital letter
are reserved. But one leading underscore followed by a lower case letter
should be OK. I used to use a leading underscore myself but changed to m_
when I found out that the "m" meant "member" and not "Microsoft". :)
--
Cy
http://home.rochester.rr.com/cyhome/