CompuServe Thread

#C++ &-Referencing

3 messages in this thread
#24296From: Greg Comeau@Comeau CmptgFeb 27, 1990 10:57 PM
>ANSI C.. assigning a value to a 'const' is implementation defined… In both C and C++ this is definitely prohibited. What is implementation defined is whether the const actually exist is any real storage or whether it may be placed in ROM for either C or C++. Nothwithstanding that there are other differences but generally they don't interfere with programming per se.
#24306From: John M. DlugoszFeb 28, 1990 3:27 PM
If it is used in such a context, it _will_ have storage defined. The compiler has the option of not generating storage only if it is never needed for anything.
#24311From: Greg Comeau@Comeau CmptgFeb 28, 1990 11:31 PM
Right, which means the use of storage for the const is impementation defined. ??