From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,72137304956d9360 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-22 14:27:52 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: generic imports? void* -> generics? Date: Mon, 22 Sep 2003 16:30:00 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:42761 Date: 2003-09-22T16:30:00-05:00 List-Id: "Simon Wright" 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.