comp.lang.ada
 help / color / mirror / Atom feed
From: gautier_niouzes@hotmail.com
Subject: Re: Q: discrete_subtype_definition: static only cases?
Date: Sun, 7 Jun 2020 07:11:38 -0700 (PDT)
Date: 2020-06-07T07:11:38-07:00	[thread overview]
Message-ID: <0f9064c2-6572-4ec8-937a-4597694dc011o@googlegroups.com> (raw)
In-Reply-To: <4b4c3687-fb26-4c75-9536-579e55df3d42o@googlegroups.com>

> Nonono, types in Ada are always anonymous. What you name in a *type declaration* is the *first subtype*.

OK, found the reference (3.2.1 (6)). Thanks.
So, what is declared following the keyword "type" is actually a "first subtype", right ?
Then, to summarize, whether you use the keyword "type" or "subtype", it is actually a subtype and can be dynamic (not too wysiwig, but there are surely some good reasons behind that concept).
Back to the question, the purely static cases of discrete_subtype_definition seem to be quite restricted (Niklas listed 2 cases - thanks!).

  reply	other threads:[~2020-06-07 14:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-07  9:27 Q: discrete_subtype_definition: static only cases? gautier_niouzes
2020-06-07 10:40 ` J-P. Rosen
2020-06-07 11:36   ` Niklas Holsti
2020-06-07 12:05     ` Niklas Holsti
2020-06-07 21:02     ` J-P. Rosen
2020-06-08  4:55       ` gautier_niouzes
2020-06-07 12:13   ` gautier_niouzes
2020-06-07 13:02     ` Jeffrey R. Carter
2020-06-07 13:14       ` gautier_niouzes
2020-06-07 13:50         ` AdaMagica
2020-06-07 14:11           ` gautier_niouzes [this message]
2020-06-07 13:00 ` Jeffrey R. Carter
2020-06-11  5:36 ` reinert
replies disabled

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