Home » PANDA » PandaRoot » General » Problem with hiding (shadowing) variables
Problem with hiding (shadowing) variables [message #9424] |
Sat, 19 September 2009 00:01 |
Mohammad Al-Turany
Messages: 518 Registered: April 2004 Location: GSI, Germany
|
first-grade participant |
From: *dip.t-dialin.net
|
|
Hello everybody,
I noticed that there is a lot of places in PandaRoot where variables are simply shadowed in the software, at some places this is harmless but it could also create serious problems which are hard to find out! that is why I switch on the warning for hiding variables for the compiler (-Wshadow) this will show you the places where this happened, So please try to avoid this and correct the corresponding classes and by the way many of these could be avoided if you simply try to follow the coding convention which we agreed upon years ago!
http://panda-wiki.gsi.de/cgi-bin/view/Computing/PandaRootCodingRules
regards
Mohammad
|
|
|
Goto Forum:
Current Time: Tue Nov 26 10:09:33 CET 2024
Total time taken to generate the page: 0.00818 seconds
|