comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: generic imports?  void* -> generics?
Date: Mon, 22 Sep 2003 16:30:00 -0500
Date: 2003-09-22T16:30:00-05:00	[thread overview]
Message-ID: <vmuqao1m3adfd5@corp.supernews.com> (raw)
In-Reply-To: x7vd6dvierf.fsf@smaug.pushface.org

"Simon Wright" <simon@pushface.org> wrote in message
news:x7vd6dvierf.fsf@smaug.pushface.org...
> I don't understand this, your suggestion was for Stream_Element_Array
> not Root_Stream_Type'Class which is needed for 'Read ..? I can see
> that you could wrap a Stream_Element_Array in a Stream, in fact quite
> a neat idea! This sort of thing? (would make an interesting addition
> to the BCs .. or is this stuff that everybody has known for years &
> I've just missed?)

I can't speak for 'everybody' :-), but Claw has had a package like this for
years.

The Claw package puts the stream element array inside of the wrapper type.
(The access discriminant is interesting, but it couldn't be used on slices
or any constrained object, which would make it annoying to use.) That makes
it a buffer. Usually, it is used by 'loading' the buffer by calling Write
explicitly, then using the stream routines to read from it. (Or vice versa).

                   Randy.






  reply	other threads:[~2003-09-22 21:30 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-19 19:20 generic imports? void* -> generics? chris
2003-09-19 20:46 ` chris
2003-09-19 21:18 ` Nick Roberts
2003-09-19 23:12   ` chris
2003-09-20 16:52   ` Simon Wright
2003-09-22 21:30     ` Randy Brukardt [this message]
2003-09-23  5:45       ` Simon Wright
2003-09-23 19:07         ` Randy Brukardt
2003-09-23 20:28           ` Simon Wright
2003-09-24 18:16             ` Randy Brukardt
2003-09-19 22:40 ` Matthew Heaney
2003-09-19 23:01   ` chris
2003-09-20  1:59   ` Jeffrey Carter
2003-09-20 13:52     ` Matthew Heaney
2003-09-23 22:39 ` chris
replies disabled

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