Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.programmer Subject: Re: enhance an array's static type by a lower length-bound. Date: Wed, 17 Aug 2011 22:11:39 -0700 Organization: Canadian Mind Products Lines: 20 Message-ID: <6k7p47d9442mcld6j2p5l4hekodard6oss@4ax.com> References: Reply-To: Roedy Green NNTP-Posting-Host: RCd/Ul4tyxGUBII8WGwa5g.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7200 On 17 Aug 2011 15:04:03 GMT, Andreas Leitgeb wrote, quoted or indirectly quoted someone who said : >The point of the idea is, that array variables would be added a static >bit of information, namely a lower bound (0 by default) for the length >of an array that can legally be stored in that variable. I used Pascal before I used Java. The one advantage of Java 0-based arrays is you KNOW what the base is without having to check. It takes a bit of a mental shift, but eventually you always think iteration starting at 0, just as when you were a kid, you would not start counting at anything but 1. -- Roedy Green Canadian Mind Products http://mindprod.com Most of computer code is for telling the computer what do if some very particular thing goes wrong.