From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.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: Better way to fill Storage_IO? Date: Thu, 20 May 2021 17:24:29 -0500 Organization: JSA Research & Innovation Message-ID: References: <3cfe02b8-18d3-4673-b808-48ad29092517n@googlegroups.com> Injection-Date: Thu, 20 May 2021 22:24:30 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="21493"; 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: reader02.eternal-september.org comp.lang.ada:62020 List-Id: "J-P. Rosen" wrote in message news:s850rr$mvm$1@dont-email.me... ... > "X'Image denotes the result of calling function S'Image with Arg being X, > where S is the nominal subtype of X." > > So, it's a special notation, like a kind of macro, with no proper > definition. This hurts my purist's state of mind... Naw, it's an attribute, just like 'Pos and 'First(N), neither of which correspond to anything you can write. Saying that attributes are subprograms (outside of the cases where redefinition is allowed, like 'Read) simply buys a vast amount of special-case work with virtually no benefit to the user. (In Janus/Ada, at least, we have to fake treating these things as functions, as we could not afford [back in the day, of course] the space to materialize all of these little-used functions. [Float types have some 20-odd of them!]). If someone has to pay a price, it might as well be the language standard and not every implementer (and the users that actually try to use these things as functions and run into bugs in stuff no one ever tries). Water under the dam in any case, since no one has any reason to change any of this. Randy.