comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: New aggregates with Ada 2022.
Date: Fri, 1 Jul 2022 00:20:05 -0500	[thread overview]
Message-ID: <t9m066$26aj2$1@dont-email.me> (raw)
In-Reply-To: 1f894a48-b213-46d8-960f-6e97732e6105n@googlegroups.com

"Marius Amado-Alves" <amado.alves@gmail.com> wrote in message 
news:1f894a48-b213-46d8-960f-6e97732e6105n@googlegroups.com...
> "... It would be better if slices were implemented as a form of function, 
> so that they can be used when they make sense... (My post-Ada language 
> design includes variable-returning functions, so that sort of need can be 
> accomadated.)"
> (Randy)
>
> What is a "variable-returning function"?

I've imagined that "variable" and "static" are keywords that can be used 
like "constant" to declare objects. (And "constant" is the default, not 
variable.)

Once you have that, it makes sense to allow those in function returns:

       function Foo ... return constant Integer;
       function Bar ... return variable Integer;

Bar returns a variable, which simply means that you can write into it as 
well as read it. Semantically, it is similar to Ada's anonymous access 
types, except that it isn't an access type, so you can't convert it to one 
(with all of the loss of checking that implies).

>Is there available material on this post-Ada language design of yours?

No. It was a pandemic project (when I was essentially stuck at home), and I 
never made a version for public consumption (I wanted to gather more input 
on it before making it widely available). It's obvious that it would be 
quite time-consuming to do that (and I'm not the best explainer of ideas 
anyway - I tend to ramble... :-). So I never finished it (having gotten too 
busy completing Ada 2022 work).

                                 Randy. 


  reply	other threads:[~2022-07-01  5:20 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-19  7:59 New aggregates with Ada 2022 Blady
2022-06-19 14:15 ` Simon Wright
2022-06-20 19:36   ` Blady
2022-06-20 22:01     ` Simon Wright
2022-06-20 21:47 ` Randy Brukardt
2022-06-20 22:18   ` Dmitry A. Kazakov
2022-06-21 23:28     ` Randy Brukardt
2022-06-22  9:04       ` Dmitry A. Kazakov
2022-06-23  1:06         ` Randy Brukardt
2022-06-23  9:32           ` Dmitry A. Kazakov
2022-06-23 10:53             ` G.B.
2022-06-24  1:21               ` Randy Brukardt
2022-06-24  1:24             ` Randy Brukardt
2022-06-24  6:50               ` Dmitry A. Kazakov
2022-06-25  3:13                 ` Randy Brukardt
2022-06-25  8:50                   ` Dmitry A. Kazakov
2022-06-27 21:37                     ` Randy Brukardt
2022-06-28  5:36                       ` Niklas Holsti
2022-06-29  4:01                         ` Randy Brukardt
2022-06-29  8:30                           ` Jeffrey R.Carter
2022-06-29  9:04                             ` Dmitry A. Kazakov
2022-06-30  5:03                               ` Randy Brukardt
2022-06-30  8:44                                 ` Dmitry A. Kazakov
2022-06-29 11:06                             ` Niklas Holsti
2022-06-29 12:53                               ` Jeffrey R.Carter
2022-06-30  5:07                                 ` Randy Brukardt
2022-06-30  5:14                               ` Randy Brukardt
2022-06-30  8:31                                 ` Marius Amado-Alves
2022-07-01  5:20                                   ` Randy Brukardt [this message]
2022-06-30 10:30                                 ` Jeffrey R.Carter
2022-06-30 15:48                                   ` Marius Amado-Alves
2022-06-30 16:39                                     ` Jeffrey R.Carter
2022-07-01  0:07                                       ` Marius Amado-Alves
2022-06-28  7:52                       ` Dmitry A. Kazakov
2022-06-29  4:07                         ` Randy Brukardt
2022-06-29  7:24                           ` Dmitry A. Kazakov
2022-06-30  5:00                             ` Randy Brukardt
2022-06-21 23:39     ` Randy Brukardt
2022-06-22  8:26       ` Dmitry A. Kazakov
2022-06-23  1:10         ` Randy Brukardt
2022-06-23  9:32           ` Dmitry A. Kazakov
2022-06-20 22:10 ` Jesper Quorning
2022-06-20 22:59   ` Jesper Quorning
2022-06-21 23:20     ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox