www.delorie.com/archives/browse.cgi | search |
From: | Endlisnis <s257m AT unb DOT ca> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Const pointers |
Date: | Sat, 15 May 1999 20:36:17 -0400 |
Organization: | BrunNet |
Lines: | 23 |
Message-ID: | <373E1301.FE5B329@unb.ca> |
References: | <ihrypBA2oYP3Ewbq AT dunvegan1 DOT demon DOT co DOT uk> |
NNTP-Posting-Host: | ftnts1c20.brunnet.net |
Mime-Version: | 1.0 |
X-Mailer: | Mozilla 4.51 [en] (Win95; U) |
X-Accept-Language: | en |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Paul Richards wrote: > Here's what I'm doing: > Ship const *pships=new Ship[num_ships]; Ship * const pship = ... That should do the trick > but this will still work: > pships++; > when it shouldn't. -- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT HotMail DOT com ICQ: 32959047
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |