Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ian Collins Newsgroups: comp.lang.c++ Subject: Re: well-defined terminology versus generally accepted terminology regarding pointers and arrays Date: Thu, 14 Apr 2011 10:54:09 +1200 Lines: 42 Message-ID: <90mnshFeeiU12@mid.individual.net> References: <90mjc9FkbtU1@mid.individual.net> <90mmj2FeeiU11@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net HbS0ewiQ8UVXc4ngW/HUVQXIRPLXyXluaBoGVA+/dE6QZ2Jw4J Cancel-Lock: sha1:UK5pwhBHgyqY9nfsCHpEQPlUkMs= User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4 In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:3622 On 04/14/11 10:45 AM, Alf P. Steinbach /Usenet wrote: > * Ian Collins, on 14.04.2011 00:32: >> On 04/14/11 09:52 AM, Alf P. Steinbach /Usenet wrote: >>> * Ian Collins, on 13.04.2011 23:37: >>>> >>>> One point I don't think has been argued over: when is an array not an >>>> array? >>> >>> One can possibly say that an array of zero size is not an array. >>> >>> Such an array (or non-array?) can only be allocated dynamically. >>> >>> >>>> If after int* p1 = new int[42]; p pints to an array, what does ++p >>>> point to? >>>> Another array? If p is a pointer to an array, does incrementing p >>>> change it to >>>> something else? >>> >>> You're confusing/conflating two levels of formality, so to speak. >> >> I don't think so. > > Think again, then. You are. Conflating. The formal and the informal. OK, fair point. >>> Another example of that: a small heap plus a little grain of sand is >>> still small, and so on... >>> >>> If you want a reasonable way to think about it, then (new int[42])+1 >>> points into an array, and it also points to the start of a sub-array. >> >> Alf, you are inventing new shovels to dig yourself out of a hole! > > No, you were digging yourself into a hole. Believe me, after recent dramatic events around here (home), I have plenty of experience of holes and digging! -- Ian Collins