comp.lang.ada
 help / color / mirror / Atom feed
From: Victor Porton <porton@narod.ru>
Subject: Re: Dynamic type system for Ada
Date: Tue, 24 Jan 2017 15:58:31 +0200
Date: 2017-01-24T15:58:31+02:00	[thread overview]
Message-ID: <o67mi7$v0f$1@gioia.aioe.org> (raw)
In-Reply-To: o67lon$tgo$1@gioia.aioe.org

It seems that you didn't understood me.

Dmitry A. Kazakov wrote:
> On 24/01/2017 14:12, Victor Porton wrote:
>> I thought on combining powers of static (like Ada) and dynamic (like
>> Python) languages. In two seconds I understood that this can be done by
>> creating a special "Dynamic" type in a static language.
> 
> There is no such thing as a dynamic type system. A dynamic type is a
> value of some static type, e.g. "any" or "type type" etc. The hierarchy
> must end somewhere and that is always a static type.

All I ask is just an Ada type which would be so flexible that could store 
any kind of a value (just like as a variable in a dynamic language).

This type could be a variant record which could store numbers, lists/arrays, 
strings, etc. (anything that can be stored in a variable in a dynamic 
language).

>> Due to pure curiosity, I ask: Has anybody developed a dynamic type system
>> for Ada?
> 
> AFAIK there were no proposals to add a type type to Ada. There exist
> some rudimentary means, like generic constructor, but nothing beyond that.

There is no need to "add" it to Ada. Anybody with a little programming 
experience can develop a package with such a type.

I think developing such a library can be useful for Ada community.

And no, it is not a "type type".

-- 
Victor Porton - http://portonvictor.org

  reply	other threads:[~2017-01-24 13:58 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 [this message]
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
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