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,b57f84f15b8a93fb X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-13 12:15:51 PST Path: supernews.google.com!sn-xit-02!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newscore.univie.ac.at!newsfeed.sunet.se!news01.sunet.se!news.chalmers.se!dtek.chalmers.se!d96andgi From: d96andgi@dtek.chalmers.se (Anders Gidenstam) Newsgroups: comp.lang.ada Subject: Re: Streams Quandry in Ada95 Date: Wed, 13 Dec 2000 19:58:54 +0100 Organization: Chalmers University of Technology Message-ID: References: <3A370548.B8AF2579@home.com> <3A37B3C3.86CFCF66@home.com> NNTP-Posting-Host: licia.dtek.chalmers.se X-Trace: nyheter.chalmers.se 976738548 21346 129.16.30.88 (13 Dec 2000 20:15:48 GMT) X-Complaints-To: abuse@chalmers.se NNTP-Posting-Date: 13 Dec 2000 20:15:48 GMT X-Newsreader: knews 0.9.6 Xref: supernews.google.com comp.lang.ada:3090 Date: 2000-12-13T20:15:48+00:00 List-Id: In article <3A37B3C3.86CFCF66@home.com>, "Warren W. Gay VE3WWG" writes: > >The problem is that the codec routine Pump() cannot >work with its arguments, because they are from an abstract >stream (Audio_Stream). However, I cannot make them concrete, >unless I choose BEFOREHAND, what streams I want to use (in >this case I would be forced to choose Au_Stream and/or DSP_Stream, >which are derived from Audio_Stream). > >But I want to accept _ANY_ Audio_Stream _DERIVED_ stream. > Hello! Atleast one thing is for sure, and that is that Pump won't accept any argument of type Au_Stream_Type, since that type isn't derived from Audio_Stream_Type.. Anyway, I'm not sure I understand what the other problem is, couldn't you define the operations you need to manipulate any stream derived from Audio_Stream_Type as abstract subprograms along with the definition of Audio_Stream_Type? Just my 0.25 sek.. Regards Anders Gidenstam -- -------------------------------------------- "A well-written program is its own heaven; a poorly-written program is its own hell." - The Tao of Programming