Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Thomas David Rivers Newsgroups: comp.lang.c++ Subject: Re: Problem with array objects Date: Thu, 26 May 2011 09:08:16 -0400 Organization: Aioe.org NNTP Server Lines: 43 Message-ID: <4DDE50C0.1080402@dignus.com> References: <846dndOds94DPEbQnZ2dnUVZ8ridnZ2d@giganews.com> <5cadnQfIzuppjUHQnZ2dnUVZ8kidnZ2d@giganews.com> <805Dp.26220$7H.26163@newsfe08.ams2> <4DDD0AE0.9080001@dignus.com> <4DDD34A8.6030005@dignus.com> <4VdDp.17340$h35.4417@newsfe19.ams2> <4DDD9893.9060502@dignus.com> NNTP-Posting-Host: 5vmandCOS2XnoG0+Ic8whg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20061027 X-Accept-Language: en-us, en X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:5616 Paul wrote: > Oh right I though I was aggreing with you on your terms but it seems > that whether I discuss an array in one context you will discuss it in > another context. > > I think an array is a contiguous sequence of elements but I can also > accept that an array identifier is called an array and that identifier > is a non modifiable object. > If I talk about an array in the context of an indentifier or in the > context of a sequence of objects you will change the correct and say I > am wrong. > > > An array is a contiguous sequence of objects and nothing more. > So no point in going any further . OK! We've got a point of agreement.. Would you say that we both agree that an array is a contiguous set of elements of the same type ; and that these elements can be accessed via the indexing operator-[] ? And, that there is nothing more to it? (I want to drop this 'non-modifiable object' idea for the time being, we can come back to that... and, we can later discover just why it's "non-modifiable"... but, one thing at a time...) If you can agree with that, then we can proceed to learn about how this all works... it's really kinda neat. We can really build from this basic understanding. And, I think you might find that it will all become much more clear. So - do we agree that an array is a contigous set of like-typed elements, where the elements are accessed via the []-operator? - Dave Rivers - -- rivers@dignus.com Work: (919) 676-0847 Get your mainframe programming tools at http://www.dignus.com