comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <nonlegitur@futureapps.invalid>
Subject: Re: Dynamic type system for Ada
Date: Wed, 25 Jan 2017 08:38:48 -0000 (UTC)
Date: 2017-01-25T08:38:48+00:00	[thread overview]
Message-ID: <o69o6o$jgs$1@dont-email.me> (raw)
In-Reply-To: o68gh6$k9d$1@franka.jacob-sparre.dk

Randy Brukardt <randy@rrsoftware.com> wrote:
 
> if one organized the hierarchy similar to 
> the chart in 3.2(12) 
> [http://www.ada-auth.org/standards/2xrm/html/RM-3-2.html#p12], you could 
> define shared operations at the appropriate levels to have some use beyond 
> just plain storage. (For instance, all of the numeric types would have math 
> this way.)

Objective-C class clusters seem to be of a similar kind, e.g. NSNumber.
The objects can then also participate in anything based on NSObject,
basically, such as being sent in a local or remote notification
or being part of a persistent object graph. 
But then, Objective-C does not have so much in terms
of Ada generics, insofar as these permit specifying private
formal types, derived or not,
to have just the operations that are needed in instances.

> I do wonder how useful such a hierarchy would be, but I suppose someone 
> would have to build it to find out.




  parent reply	other threads:[~2017-01-25  8:38 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-24 13:12 Dynamic type system for Ada Victor Porton
2017-01-24 13:44 ` Dmitry A. Kazakov
2017-01-24 13:58   ` Victor Porton
2017-01-24 14:26     ` Dmitry A. Kazakov
2017-01-24 18:07     ` Jeffrey R. Carter
2017-01-24 21:21     ` Randy Brukardt
2017-01-24 22:01       ` J-P. Rosen
2017-01-25  8:23       ` Dmitry A. Kazakov
2017-01-25 21:55         ` Randy Brukardt
2017-01-25  8:38       ` Georg Bauhaus [this message]
2017-01-25  5:41 ` Paul Rubin
2017-01-27 19:20   ` Victor Porton
2017-01-28  1:16     ` Dennis Lee Bieber
2017-01-28  9:37       ` Jeffrey R. Carter
2017-01-26 17:53 ` Vincent
replies disabled

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