kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #02860
About notation
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
jean-pierre charras - INPG <jean-pierre.charras@...>
-
Date:
Tue, 30 Jun 2009 17:06:23 +0200
-
In-reply-to:
<4A4A1A9C.2070003@...>
-
User-agent:
Thunderbird 2.0.0.22 (Windows/20090605)
...
> Didn't know about that tool. BTW where the strange func( param )
style come from?
Me. But I call it readable, not strange.
If you are talking about parameters notation (i did not see exactly
what is strange) here are some info:
I believe it is useful to prefix variables names in order to give info
about them.
- members variable are prefixed m_ (like m_Color): a good idea from
wxWidgets team ("m_" like member)
- functions arguments are prefixed a (like aColor): a good idea from
Dick ("a" like argument)
- global variables are prefixed g_ and local (not global) variables by
s_ (fg_ and s_ like global and static) . This is my idea (I hope it is
good).
- Variables locales to a function are not prefixed.
So variables used in a function can be clearly identified.
> I never seen that before!
>
I never call ideas from others guys "strange".
I try to understand these ideas:
If i believe this is a good idea, i use it, and if i believe this is a
bad one, i forget it.
--
Jean-Pierre CHARRAS
Maître de conférences
Directeur d'études 2ieme année.
Génie Electrique et Informatique Industrielle 2
Institut Universitaire de Technologie 1 de Grenoble
BP 67, 38402 St Martin d'Heres Cedex
Recherche :
Grenoble Image Parole Signal Automatique (GIPSA - INPG)
Grenoble France
Follow ups
References