This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: another small thing


Phil Edwards <pedwards@disaster.jaj.com> writes:

| > anyway why do we use __ in local variable and parameter names ?
| 
| Well, the names follow the rules in C++STYLE

Agreed.

| ..., based on [lib.global.names],
| but you knew that already.  As far as I've ever been able to tell, local
| names don't /really/ have to be uglified,

I don't think that is right.

Assume we use `t' instead of `__t'; how do you expect this to work

	#define t 89070943
	#include <standard_header>

?

|... but A) it's good to get into
| that style, just to not slip up, because it makes easier reading, and B)
| those names are reserved for our use anyhow, best to be on the safe side.

Yes.

-- Gaby
CodeSourcery, LLC                             http://www.codesourcery.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]