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!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: gnat.string_split , howto manipulate slice numbers Date: Wed, 30 Oct 2019 00:06:52 +0100 Organization: Adalog Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 29 Oct 2019 23:06:51 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="4012454e500b1d96347a81a4b2e3e54b"; logging-data="30527"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/A5CC2US8c+XiVrrXzAKMP" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 Cancel-Lock: sha1:+2v0F1DNZPB/oxW+sB42OM4nUJ4= In-Reply-To: Content-Language: fr Openpgp: preference=signencrypt Xref: reader01.eternal-september.org comp.lang.ada:57383 Date: 2019-10-30T00:06:52+01:00 List-Id: Le 29/10/2019 à 20:36, Niklas Holsti a écrit : > 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. [Yet another shameless plug] AdaControl has a rule to check renamings with different names (precisely intended for eliminate this error) -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr