From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Parameterised 'Image Attributes Date: Mon, 28 Aug 2023 21:08:10 +0200 Organization: A noiseless patient Spider Message-ID: References: <4c861cba-9ad6-429d-b530-a40c45dfc176n@googlegroups.com> <41ae24fb-793e-4bb7-9086-c8923ddc5d9dn@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 28 Aug 2023 19:08:07 -0000 (UTC) Injection-Info: dont-email.me; posting-host="5a879763e13e5c6e904f542db0b53b64"; logging-data="1931233"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+h0hr4FXdBlaUTgEFfceBv1UmxT5rbnb4=" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Cancel-Lock: sha1:Yog+/mQuQWY7/SJuytpZiQf6vSg= Content-Language: en-US In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:65571 List-Id: On 2023-08-28 19:58, Niklas Holsti wrote: > On 2023-08-28 13:58, Dmitry A. Kazakov wrote: >> On 2023-08-28 11:18, Stephen Davies wrote: >> >>> I did read Randy's response, he explained the difficulty in adding >>> parameters to 'Image, >> >> He rather explained that this will never happen... (:-)) >> >> There is no good reason why attributes should not have the same >> parameter syntax as subprograms and entry calls. > > Yes in principle, but it is understandble that making this happen now > could impact both the language definition and various implementations in > non-trivial ways. Comparing to the useless and damaging sediments the language collects with each new release? (:-)) >> Neither there is one why 'Image must be a non-overridable attribute > > In Ada 2022, 'Image is defined to call the new attribute 'Put_Image, > which can be specified (ie. overridden) by the programmer for any type. > > See http://www.ada-auth.org/standards/22rm/html/RM-4-10.html. Ah, thanks. I vaguely remembered that there was a yet another ugly hack that does not really solves anything significant, but could not find it. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de