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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: How to access an array using two different indexing schemes Date: Wed, 29 Nov 2017 14:53:46 -0600 Organization: JSA Research & Innovation Message-ID: References: <66ee0bde-123e-4713-800f-7eb692e52bd2@googlegroups.com> Injection-Date: Wed, 29 Nov 2017 20:53:46 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="27920"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:49263 Date: 2017-11-29T14:53:46-06:00 List-Id: "AdaMagica" wrote in message news:66ee0bde-123e-4713-800f-7eb692e52bd2@googlegroups.com... > I'd guess you would not need it in both ways at the same place, so split > the uses in different subprograms. Exactly. Accessing the same thing different ways in the same chunk of code is going to confuse your readers (which might be you five years from now). Think long and hard before you do such a thing. (And then don't do it. ;-) Randy.