comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Recursive algebraic data types
Date: Tue, 6 Mar 2018 22:25:28 +0100
Date: 2018-03-06T22:25:28+01:00	[thread overview]
Message-ID: <p7n108$2d1$2@gioia.aioe.org> (raw)
In-Reply-To: e3aea96c-8c5d-4569-abad-0d98e6cfc993@googlegroups.com

On 2018-03-06 20:46, hnptz@yahoo.de wrote:
> Does somebody have a generic package on recursive data types in Ada and is willing to share?

That is impossible because generics are instantiated manually, so 
recursion cannot be built on instantiation.

Otherwise self-referential types are allowed on generics.

P.S. As it was already said the definition from Wikipedia does not make 
sense.

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


  parent reply	other threads:[~2018-03-06 21:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-06 19:46 Recursive algebraic data types hnptz
2018-03-06 19:58 ` hnptz
2018-03-06 20:45   ` gautier_niouzes
2018-03-07  5:53     ` Niklas Holsti
2018-03-07  8:31       ` Dmitry A. Kazakov
2018-03-06 20:28 ` Randy Brukardt
2018-03-06 20:54   ` Jeffrey R. Carter
2018-03-06 21:14   ` Dmitry A. Kazakov
2018-03-06 21:25 ` Dmitry A. Kazakov [this message]
2018-03-06 21:54 ` hnptz
2018-03-07  7:58   ` Jacob Sparre Andersen
replies disabled

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