RE: [Dev-C++] 'extern const' and std::vector
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <iv...@at...> - 2003-05-01 16:27:11
|
> -----Original Message----- > From: Per Westermark [mailto:pw...@ia...] > Sent: Thursday, May 01, 2003 6:15 PM > To: Ioannis Vranos > Cc: Dev-C++ Mailing List > Subject: RE: [Dev-C++] 'extern const' and std::vector > > > Yes, this exists: > extern const int x; > > However, that is a constant. The request - as I read it - was > for a global > variable to be const in just one file, while writeable in other files. Ok then I recall. :) It sounds like he is doing a bad design though. > When extern-declaring something (that is already declared > somewhere else), > you should declare it identical to the original declaration, > and it this > case the original declaration is not const. Yes. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |