comp.lang.ada
 help / color / mirror / Atom feed
* How to best make a custom range?
@ 2019-11-04 17:26 Andrew Shvets
  2019-11-04 17:56 ` Shark8
  2019-11-04 18:34 ` Dmitry A. Kazakov
  0 siblings, 2 replies; 16+ messages in thread
From: Andrew Shvets @ 2019-11-04 17:26 UTC (permalink / raw)


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?  I thought of doing the following, but this obviously failed:

subtype Test_Char is Character range ‘@‘ | ‘&’ | ‘?’ | ‘A’ .. ‘Z’;

Or is this impossible unless I use a different approach?


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2019-11-08 22:28 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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