comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Type naming conventions: Any_Foo
Date: Sun, 8 Dec 2019 13:38:41 +0100
Date: 2019-12-08T13:38:41+01:00	[thread overview]
Message-ID: <qsiqsh$lrh$1@gioia.aioe.org> (raw)
In-Reply-To: qsioca$nf2$1@dont-email.me

On 2019-12-08 12:55, Jeffrey R. Carter wrote:
> On 12/7/19 12:21 PM, Dmitry A. Kazakov wrote:
>> On 2019-12-07 11:13, Jeffrey R. Carter wrote:
>>>
>>> As these are generic data structures, there are no instances of the 
>>> type.
>>
>> Each type has instances = objects of.
> 
> I have seen a generic data structure named Generic_B_Trees, written by 
> Dimitry Kazakov. It has 2 generic formal types, and no instances of 
> either of those types.

I am not sure what your point is. The formal type is not a type. It is a 
class, set of types. An actual type of the formal type is a proper type. 
Both have instances. The instances of a formal type are types. The 
instances of a type are object of.

My point is that calling a class or a singular type Element is not good.

>>> As I have presented here in the past a proof of concept of a GUI 
>>> library that uses no access types, this is demonstrably false.
>>
>> Yes, I remember you did, but I also remember that it was not really 
>> usable.
> 
> I implemented several examples using the it, and found it quite usable, 
> and the resulting code much easier to understand than typeical GUIs.

In my view it lacks fundamental GUI elements like aggregation of 
widgets, hierarchical organization of events and event handling, classes 
of widgets.

I don't see how these can be solved without references. I hate pointers, 
but I doubt that the references required for GUI can be made 
significantly safer than pointers in Ada, presently.

And the reference types must have separate names anyway, again 
presently. [ I could imagine some attribute to denote corresponding type 
anonymously, like T'Class does, but that is not Ada. ]

> However, the point in contention was your claim that you are required to 
> use access types to have a GUI. When that was demonstrated to be untrue, 
> you attempted to change the subject. So I consider this discussion 
> finished.

OK

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  reply	other threads:[~2019-12-08 12:38 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-04 13:56 Type naming conventions: Any_Foo Alejandro R. Mosteo
2019-12-04 14:52 ` Lucretia
2019-12-04 16:42   ` Alejandro R. Mosteo
2019-12-05 10:51     ` AdaMagica
2019-12-05 17:27       ` Jeffrey R. Carter
2019-12-05 17:45         ` Dmitry A. Kazakov
2019-12-05 20:03           ` Jeffrey R. Carter
2019-12-05 21:51             ` Dmitry A. Kazakov
2019-12-05 23:12               ` Randy Brukardt
2019-12-06 20:20                 ` Jeffrey R. Carter
2019-12-07  1:19                   ` Randy Brukardt
2019-12-06 20:18               ` Jeffrey R. Carter
2019-12-06 20:35                 ` Dmitry A. Kazakov
2019-12-07  0:57                   ` Randy Brukardt
2019-12-07 10:28                     ` Jeffrey R. Carter
2019-12-07 12:36                       ` Niklas Holsti
2019-12-08 12:04                         ` Jeffrey R. Carter
2019-12-07 10:13                   ` Jeffrey R. Carter
2019-12-07 11:21                     ` Dmitry A. Kazakov
2019-12-08 11:55                       ` Jeffrey R. Carter
2019-12-08 12:38                         ` Dmitry A. Kazakov [this message]
2019-12-08 14:31                         ` Shark8
2019-12-08 21:58                           ` Jeffrey R. Carter
2019-12-09 22:47                             ` Shark8
2019-12-07 23:24                     ` Jere
2019-12-08 12:14                       ` Jeffrey R. Carter
2019-12-09 22:07                         ` Randy Brukardt
2019-12-05 19:49         ` Niklas Holsti
2019-12-05 20:47           ` Jeffrey R. Carter
2019-12-05 21:33             ` Niklas Holsti
2019-12-06 11:44               ` Lucretia
2019-12-06 20:23                 ` Jeffrey R. Carter
2019-12-06 20:11               ` Jeffrey R. Carter
2019-12-06 20:46                 ` Dmitry A. Kazakov
2019-12-06 21:55                 ` Niklas Holsti
2019-12-07 10:19                   ` Jeffrey R. Carter
2019-12-07 12:05                     ` Niklas Holsti
2019-12-08 11:59                       ` Jeffrey R. Carter
2019-12-06  8:57       ` AdaMagica
2019-12-06  9:55         ` J-P. Rosen
2019-12-06 15:30       ` Optikos
2019-12-07  3:34 ` 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