Path: csiph.com!x330-a1.tempe.blueboxinc.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: Sat, 25 Jun 2011 12:10:33 -0500 Message-ID: <4E06168B.72B2@mindspring.com> Date: Sat, 25 Jun 2011 13:10:35 -0400 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: offset 1 list indexing References: <87wrgc8k05.fsf@bazspaz.fatphil.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 21 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 4.154.220.57 X-Trace: sv3-Qy2nFrorhFx4qgserL58FUDGJukVPO/m4SkYDuiJdvla7GrZL/DSm6NXrTriwVSdACsUfdVJxZowC48!kwMGma+xLCCtKsBB65GeZm6vGQG9PjYK4eA8JcXuoX+uf//GFHMXHfsrI4hVPFesyMeU5kkxpiaZ!ap5VtDXRsg== 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: 2012 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c:6933 Tim Rentsch wrote: > > Phil Carmody writes: > > > [discussing 1-origin arrays versus 0-origin arrays] > > > > 0-based heaps have carbunkles. End of. > > Please excuse my temerity, but I think you are too good > a programmer for this to be true. Take a run at writing > a 0-based heap, not just dashing it off but really trying > to do a good clean job, and see if it comes out better > than you expect. I will if you will. I don't see what the problem is with 0 based heaps. Not being able to write C code without 1 based arrays is like not be able to ride a bicycle without training wheels. -- pete