Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.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: Sun, 20 Nov 2011 16:48:21 -0600 Date: Sun, 20 Nov 2011 14:48:12 -0800 From: Patricia Shanahan User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Size of an arraylist in bytes References: <4ec97cb2$0$289$14726298@news.sunsite.dk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <88mdneGuVukoHlTTnZ2dnUVZ_jGdnZ2d@earthlink.com> Lines: 18 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 70.230.194.31 X-Trace: sv3-k0pbK54OlmoXDB5iLYk0Vb72olg4qyDeHEVFFvbrLsuKsFBYor3IVGZnY4e+ZVtc4E0EhK4N9wFOZAa!RZwppLfyyNNgHHwGR1gHAbbTgVIPKEalG1njfYyNR5aa+CS9sLweTCn3GLTQXf8NzqR7lBd2oWpz!hQ51YV4j1302WjD/hlDOcMMhx7z2iMzKxiofeta0zxuHbQ== 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: 2261 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:10127 On 11/20/2011 2:42 PM, Stefan Ram wrote: > Arne Vajhøj writes: >> C/C++ pointers has certainly caused a lot of problems over the >> years. > > C serves as a »portable, abstract machine language«, so the > C pointers are inherited machine addresses from machine > languages, where one can freely add machine addresses and > numbers. But, after all, C already adds some type safety and > abstraction. So, C still makes sense as the first layer on > top of the bare metal. And C cannot be blamed for someone > choosing C where it is not appropriate. My main concern with C's pointers is that they were called "pointers", not "addresses". They behave far more like assembly language addresses than like something more abstract, whose only job is to point. Patricia