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!news.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: Community Input for the Maintenance and Revision of the Ada Programming Language Date: Tue, 5 Sep 2017 17:29:15 -0500 Organization: JSA Research & Innovation Message-ID: References: <4dc188de-802b-41ad-9cdd-b8246eb9a1c7@googlegroups.com> <47cc6474-8b75-4644-92d0-bd1f694c20e7@googlegroups.com> <338b355a-dee4-4c73-b00e-09d9a8430fb1@googlegroups.com> Injection-Date: Tue, 5 Sep 2017 22:29:15 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="14695"; 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; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: news.eternal-september.org comp.lang.ada:47939 Date: 2017-09-05T17:29:15-05:00 List-Id: "Alejandro R. Mosteo" wrote in message news:ooglev$c4u$1@dont-email.me... > On 03/09/17 03:35, Randy Brukardt wrote: ... >> subtype Zero_Array is Integer_Array (0 .. Item'Length - 1); >> X : Zero_Array := Zero_Array (Item); > > Wouldn't that possibly involve a copy? If so, would using "constant" > guarantee a free renaming? Yes, it involves a copy. (I thought of that after sending the message, should have mentioned it.) 90% of the time (and 100% of the time when I would use this, exclusively for Strings), the copy isn't consequential. The remaining 10% of the time, use the original bounds (it isn't that hard). > And is there a difference to using rename?: Renames ignores the bounds of the renames; I explained why in the reply to Dmitry. Randy.