TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: DANIEL JONES
from: THOMAS MAEDER
date: 1997-08-09 12:02:00
subject: Sunir ventures into C++

DJ> TM> It's  * const var which replaced by  &var; it's not
DJ> TM> to modify the target of a reference.
DJ> ??? Since when? This program works just fine on my system:
Blame my English if my statement was incorrect.
What  I  meant  is:  the  target  of a reference cannot be replaced by
another target:
If I write
int i;
int &ir = i;
I declare ir to be a reference to i for its whole  lifetime;  I  can't
have ir refer to some other target.
This is (module syntactical differences) the same thing as writing:
int i;
int * const ir; // constant pointer to non-const int
Thomas
---
 þ MM 1.0 #0113 þ This tagline is subject to change without notice
---------------
* Origin: McMeier & Son BBS (2:301/138)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.