Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.chainon-marquant.org!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!198.186.194.247.MISMATCH!news-out.readnews.com!transit3.readnews.com!postnews.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 21 Nov 2011 16:45:16 -0600 Message-ID: <4ECAD480.5FD5@mindspring.com> Date: Mon, 21 Nov 2011 17:45:20 -0500 From: pete Reply-To: pfiland@mindspring.com Organization: PF X-Mailer: Mozilla 3.04Gold (WinNT; I) MIME-Version: 1.0 Newsgroups: comp.lang.c Subject: Re: Size of an arraylist in bytes References: <4ec97cb2$0$289$14726298@news.sunsite.dk> <88mdneGuVukoHlTTnZ2dnUVZ_jGdnZ2d@earthlink.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 35 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 4.156.228.248 X-Trace: sv3-a51QmKjGSlLq7ymdqe8MFc6GRm7vapKntSUxQTmtNeMS+0louuIlHQGTJfwNNJPgkN6vaoygE4b30A4!dPDcri+dQBOLYGe0l+Z+bf1xZi1zfoLDfoNDpOOjCzKqFX+AuzD8SZ/fxrXCr9WelUTjWxRgza4j!QkKqDVhSSlc= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2661 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c:13749 Keith Thompson wrote: > > Joe Wright writes: > [...] > > A pointer is a variable object in storage which can hold the address of > > another object in storage. The address is a value, the pointer is an object. > > > > This concept is too complicated (or too simple) to some of my old friends > > but it works for me. Keith Thompson beat me into semi-submission several > > years ago until I got too tired to play. But here I am again. > > > > A pointer is an object. A function cannot return an object. Consider.. > > > > char *strcat(char *d, char *s); > > > > ..does not return a pointer, but an address of (char*) type. > > That's an entirely consistent and sensible way to look at it. > > Unfortunately, > it's entirely inconsistent with the way standard uses the > word "pointer". See for example, C99 7.20.3.3p3: > > The malloc function returns either a null pointer or a pointer to > the allocated space. A null pointer constant, may be converted to null pointer. I refer to any expression of any type, as an instance of that type. (0.0) is a double. -- pete