From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,703c4f68db81387d X-Google-Thread: 109fba,703c4f68db81387d X-Google-Thread: 115aec,703c4f68db81387d X-Google-Thread: f43e6,703c4f68db81387d X-Google-Attributes: gid103376,gid109fba,gid115aec,gidf43e6,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!l41g2000cwc.googlegroups.com!not-for-mail From: "T Beck" Newsgroups: comp.lang.ada,comp.lang.c++,comp.realtime,comp.software-eng Subject: Re: Teaching new tricks to an old dog (C++ -->Ada) Date: 24 Mar 2005 13:10:43 -0800 Organization: http://groups.google.com Message-ID: <1111698643.735412.144620@l41g2000cwc.googlegroups.com> References: <1110284070.410136.205090@o13g2000cwo.googlegroups.com> <395uqaF5rhu2mU1@individual.net> <1110329098.642196@athnrd02> <1110361741.551255@athnrd02> <422edaec$0$26554$9b4e6d93@newsread4.arcor-online.net> <1111464133.508323@athnrd02> <423fe9df$0$11476$9b4e6d93@newsread2.arcor-online.net> <1111521825.653841@athnrd02> <424094b0$0$11481$9b4e6d93@newsread2.arcor-online.net> <1111568404.687226@athnrd02> <42416659$0$11476$9b4e6d93@newsread2.arcor-online.net> <1111611226.253249@athnrd02> <4241f47a$0$24073$9b4e6d93@newsread4.arcor-online.net> <1111627358.387482@athnrd02> <424222df$0$24057$9b4e6d93@newsread4.arcor-online.net> <1111632436.374702@athnrd02> NNTP-Posting-Host: 12.36.118.167 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1111698648 24000 127.0.0.1 (24 Mar 2005 21:10:48 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 24 Mar 2005 21:10:48 +0000 (UTC) In-Reply-To: <1111632436.374702@athnrd02> User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: l41g2000cwc.googlegroups.com; posting-host=12.36.118.167; posting-account=7GrHtw0AAADgnydg4BoSD_vyfw8y6Tie Xref: g2news1.google.com comp.lang.ada:9933 comp.lang.c++:47121 comp.realtime:1691 comp.software-eng:5302 Date: 2005-03-24T13:10:43-08:00 List-Id: I'm with Ioannis on this one... I fail to see how p[-1] is any less an index on an array than somearray[1] is. They're using the exact same compile-time methods to get to where their data is, and if you really want to use -1 as an index, it's allowing you to do exactly that. Is there something magical about being able to declare it yourself that makes it a "proper" index? Or would you just rather see Perl-style negative indices? (which would make no sense in the way I've seen people describe using negative indices in this discussion)