RE: [Dev-C++] #DEFINE versus cont variables in array inicializations
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <iv...@te...> - 2003-05-30 19:27:04
|
> -----Original Message----- > From: Per Westermark [mailto:pw...@ia...]=20 > Sent: Saturday, May 31, 2003 2:04 AM > To: Ioannis Vranos > Cc: Dev-C++ Mailing List > Subject: RE: [Dev-C++] #DEFINE versus cont variables in array=20 > inicializations >=20 >=20 > Oops, goofed a bit. See below. > > But then again > > - 'a const &int =3D <value>' is a complicated declaration=20 > just to get a >=20 > Should of course be 'const int SIZE =3D <value>' >=20 > > "magic" address to compare against. I still do not understand what you mean by the above. The language rules = are language rules. A global const variable has an address (at least it = behaves as it has, when we want to use this address).=20 Only references do not have their own address. Ioannis Vranos =20 * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |