Topic: The use of __ in identifiers


Author: bevan@cs.man.ac.uk (Stephen J Bevan)
Date: 18 Oct 91 18:06:22 GMT
Raw View
On page 7 of the ARM and page 479 of Stroustrup 2nd Edition it says :-

"In addition, identifiers containing a double underscore (__) are
 reserved for use by C++ implementations and standard libraries and
 should be avoided by users."

Does it really mean "contain" and not "starting with"?  If it does,
why?  The only reason I can think of is to give implementers more room
to play with when mangling names.  However, I would have thought that
reserving the __ at the start would have been good enough for that.


Stephen J. Bevan   bevan@cs.man.ac.uk