www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript
electronics



c++ - Already defined not (always) working

In my definition file I have this:

static char xw2,xw3,xw4,xw5;

And 300 lines further:

static char xw2;

The compiler does not recognize the double, no error is reported.

The questions:

1) Which of the two "xw2" variables is used by the compiler, the
first or the second? It's important to know for me because I
sometimes redefine char's as 32-bit int's.

2) Is there a tool (way) to hunt for double used variable names? A
cross reference comes to mind.

Thx in advance,

Ed
Jul 16 2007