From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: How to best make a custom range?
Date: Mon, 4 Nov 2019 19:34:45 +0100
Date: 2019-11-04T19:34:45+01:00 [thread overview]
Message-ID: <qppr05$nml$1@gioia.aioe.org> (raw)
In-Reply-To: fb36f04f-353e-4e35-bd19-eb72d2e78955@googlegroups.com
On 2019-11-04 18:26, Andrew Shvets wrote:
> Lets say I have the following code:
>
> subtype Test_Char is Character range ‘A’ .. ‘Z’;
>
> But what if I wanted to include ‘&’, ‘@‘ and ‘?’ in this custom range of characters as well?
It is not range, it is an arbitrary subset. Differently to a range it
would lose most of operations, where a range loses only a few.
> Or is this impossible unless I use a different approach?
What do you want from this type? Usually it is is-in test and
enumeration. For that purpose discrete sets are just OK.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2019-11-04 18:34 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-04 17:26 How to best make a custom range? Andrew Shvets
2019-11-04 17:56 ` Shark8
2019-11-04 18:49 ` Andrew Shvets
2019-11-04 19:16 ` Shark8
2019-11-05 14:02 ` Andrew Shvets
2019-11-05 15:10 ` Shark8
2019-11-08 15:55 ` AdaMagica
2019-11-08 16:07 ` AdaMagica
2019-11-08 22:28 ` Randy Brukardt
2019-11-05 17:14 ` Dmitry A. Kazakov
2019-11-05 17:28 ` Shark8
2019-11-04 18:34 ` Dmitry A. Kazakov [this message]
2019-11-04 18:49 ` Andrew Shvets
2019-11-04 18:55 ` Dmitry A. Kazakov
2019-11-04 19:13 ` Shark8
2019-11-04 21:41 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox