TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: DARIN MCBRIDE
from: JERRY COFFIN
date: 1997-04-25 16:43:00
subject: Pointer Arrays

On (24 Apr 97) Darin McBride wrote to Jerry Coffin...
 JC>     int &player = id[j].controller-1;
 DM> How does that help?  The compiler should, at the least, complain it
 DM> has to create a temporary for the reference to refer to.
 DM> Get rid of the &.
Oops - you're right.  A stupid slip on my part.  Thanks.
 DM> {And, due to the complexity of the original, I'll assume it was just
 DM> pure confusion that led to the incorrect "player" - it should be
 DM> data[id[j]].controller-1, if I read it correctly}
Probably - I didn't recheck that what I put in matched what it was
replacing.  Would it sound lame if I claimed that rather than showing
sloppiness on my part, this just confirmed the excessive complication of
the original?
    Later,
    Jerry.
... The Universe is a figment of its own imagination.
--- PPoint 1.90
---------------
* Origin: Point Pointedly Pointless (1:128/166.5)

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™.