the "const" qualifier
rpjday at ccu.umanitoba.ca
rpjday at ccu.umanitoba.ca
Thu Aug 2 10:28:46 AEST 1990
In article <1990Aug1.005200.21645 at ccu.umanitoba.ca> I write:
> Section 3.5.3, line 26, we have, "For two qualified types to be
>compatible, both shall have the identically qualified version of a
>compatible type..." Does "compatible" mean assignment compatible?
>That is, I am not allowed to do
>
> const int i = 10;
> int j;
> j = i; ???
>
>even though this has no effectg on the value of j?
Of course, what I meant was "no effect on the value of i". Sigh.
More information about the Comp.std.c
mailing list