This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: another small thing
- To: Phil Edwards <pedwards at disaster dot jaj dot com>
- Subject: Re: another small thing
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 17 Aug 2000 22:41:50 +0200
- Cc: lfarkas at mindmaker dot hu, libstdc++ at sources dot redhat dot com
- Organization: CodeSourcery, LLC
- References: <200008171834.OAA19349@disaster.jaj.com>
- Reply-To: libstdc++ at sources dot redhat dot com
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