comp.lang.ada
 help / color / mirror / Atom feed
* Multiple iterators for a type
@ 2018-05-25 16:49 Lucretia
  2018-05-25 19:50 ` Jacob Sparre Andersen
  2018-05-26  3:13 ` Stephen Leake
  0 siblings, 2 replies; 12+ messages in thread
From: Lucretia @ 2018-05-25 16:49 UTC (permalink / raw)


Hi,

I want to have a type which is an array of 8 bit values, I want the default iterator to be the normal array loop.

But then I want to add more iterators which return different types but constructed from the array, i.e. a 32-bit value and a sub-array.

1. Can this be done on the base type or do I need to create new types from the base type?

2. if 1. can be done, do these iterators all need to be one package or can I put them in child packages?

Thanks,
Luke.

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

end of thread, other threads:[~2018-05-26 14:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-25 16:49 Multiple iterators for a type Lucretia
2018-05-25 19:50 ` Jacob Sparre Andersen
2018-05-25 21:50   ` Randy Brukardt
2018-05-26  3:13 ` Stephen Leake
2018-05-26  3:57   ` Luke A. Guest
2018-05-26  4:44     ` Jere
2018-05-26  6:59     ` Dmitry A. Kazakov
2018-05-26 12:33       ` Dan'l Miller
2018-05-26 13:03       ` Lucretia
2018-05-26 13:52         ` Dmitry A. Kazakov
2018-05-26 14:22           ` Dan'l Miller
2018-05-26  7:14     ` G.B.

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