From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Better way to fill Storage_IO?
Date: Thu, 20 May 2021 17:24:29 -0500 [thread overview]
Message-ID: <s86niu$kvl$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: s850rr$mvm$1@dont-email.me
"J-P. Rosen" <rosen@adalog.fr> 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.
next prev parent reply other threads:[~2021-05-20 22:24 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-17 18:44 Better way to fill Storage_IO? Michael Hardeman
2021-05-17 19:14 ` Simon Wright
2021-05-17 19:23 ` Michael Hardeman
2021-05-18 20:39 ` Simon Wright
2021-05-19 6:24 ` Dmitry A. Kazakov
2021-05-19 7:17 ` J-P. Rosen
2021-05-19 8:26 ` Björn Lundin
2021-05-19 19:25 ` J-P. Rosen
2021-05-19 19:58 ` Dmitry A. Kazakov
2021-05-19 20:18 ` Björn Lundin
2021-05-20 5:38 ` Niklas Holsti
2021-05-20 6:50 ` J-P. Rosen
2021-05-20 22:24 ` Randy Brukardt [this message]
2021-05-19 15:39 ` Simon Wright
2021-05-17 20:20 ` Dmitry A. Kazakov
2021-05-17 20:48 ` Michael Hardeman
2021-05-18 14:00 ` Per Sandberg
2021-05-18 9:08 ` J-P. Rosen
2021-05-18 10:10 ` Jeffrey R. Carter
2021-05-18 16:50 ` Shark8
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox