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 X-Received: by 2002:a37:9d96:: with SMTP id g144mr746728qke.93.1572601552058; Fri, 01 Nov 2019 02:45:52 -0700 (PDT) X-Received: by 2002:a54:4894:: with SMTP id r20mr2071198oic.51.1572601551758; Fri, 01 Nov 2019 02:45:51 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!fdn.fr!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!j16no10093670qtl.0!news-out.google.com!p4ni208qtu.1!nntp.google.com!j16no10093642qtl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 1 Nov 2019 02:45:51 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=136.163.208.2; posting-account=HFCrOQoAAABZD_f-UUbYHm3lJDIrh-UX NNTP-Posting-Host: 136.163.208.2 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: gnat.string_split , howto manipulate slice numbers From: joakimds@kth.se Injection-Date: Fri, 01 Nov 2019 09:45:52 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:57412 Date: 2019-11-01T02:45:51-07:00 List-Id: > Yes, but I do not recommend this "rename" method for wide use. Some > decades ago, in an Ada 83 project which thus did not allow "use type", > we had several bugs where copy-paste sloppiness resulted in (for > example) some "-" operator renaming a "+" operator, with "amusing" results. I haven't run into bugs associated with this myself but I did realize things could go wrong when using renamings and guessed the motivation for introducing "use type" in Ada95. Thanks for sharing you experiences Niklas. > [Yet another shameless plug] AdaControl has a rule to check renamings > with different names (precisely intended for eliminate this error) Good to know J-P. Rosen, thanks. Best regards, Joakim