comp.lang.ada
 help / color / mirror / Atom feed
* discontinuous subtype without aspect
@ 2018-01-28 14:45 Mehdi Saada
  2018-01-29 23:24 ` Randy Brukardt
  2018-01-30 17:31 ` Mehdi Saada
  0 siblings, 2 replies; 5+ messages in thread
From: Mehdi Saada @ 2018-01-28 14:45 UTC (permalink / raw)


I'm happy that non continuous index subtypes will be allowed,
but I wonder why 
subtype S is T with STATIC_PREDICATE S in Val1|Val5..Val7
has been favored instead of plain:
subtype S is T range Val1|Val5..Val7 ?
It's not an already used syntax though.
Same thing here:
If Index has some static predicate, Squares_Array : Array_Type := (for I in Index => I * I); will iterate on in a non continuous way,
but why not Squares_Array : Array_Type := (for I in Val1..Val3|Val5 => I * I);
It would be a lot nicer, and '|' as far as I understood has close to one meaning or semantic wherever it's used, be it exception handlers and or case selection choices.


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

end of thread, other threads:[~2018-01-30 22:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-28 14:45 discontinuous subtype without aspect Mehdi Saada
2018-01-29 23:24 ` Randy Brukardt
2018-01-30 17:31 ` Mehdi Saada
2018-01-30 18:15   ` Dmitry A. Kazakov
2018-01-30 22:09   ` Randy Brukardt

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