From: Endlisnis 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: NNTP-Posting-Host: ftnts1c20.brunnet.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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