On Jun 25, 2:05 pm, p...@informatimago.com (Pascal J. Bourguignon)
wrote:
> Since I distinguish GlobalVariables from localVariables and
> memberVariables,
Isn't the correct solution here not to use global variables,
except for things which by there nature have to be global. And
in that case, the name of the thing should identify it enough
that the reader knows that it has to be global.
In practice, I've never found any problem in knowing where to
look for a variable. I use a naming convention for member
variables simply in order to be able to use the "raw" name for
accessor functions.
Distinguishing between the name of a type and the name of a
variable or a function seems far more important to me, since
whether something is the name of type or not determines how you
parse a statement.
[...]
> Indeed, it's mostly a question of getting accustomed to _some_
> convention. I just gave my preferences. It's not even the
> convention I have to use everyday at work...
But you didn't present it like that

. (At least, I got the
impression that you were presenting more or less absolute
rules.)
--
James Kanze (GABI Software) email:
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34