comp.lang.ada
 help / color / mirror / Atom feed
From: d96andgi@dtek.chalmers.se (Anders Gidenstam)
Subject: Re: Streams Quandry in Ada95
Date: Wed, 13 Dec 2000 19:58:54 +0100
Date: 2000-12-13T20:15:48+00:00	[thread overview]
Message-ID: <etg819.g11.ln@aragorn.hemma.kungalv.se> (raw)
In-Reply-To: 3A37B3C3.86CFCF66@home.com

In article <3A37B3C3.86CFCF66@home.com>,
	"Warren W. Gay VE3WWG" <ve3wwg@home.com> 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 




      parent reply	other threads:[~2000-12-13 18:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3A370548.B8AF2579@home.com>
2000-12-13 16:27 ` Streams Quandry in Ada95 Stephen Leake
2000-12-13 17:39   ` Warren W. Gay VE3WWG
2000-12-13 18:49     ` tmoran
2000-12-13 20:04       ` Warren W. Gay VE3WWG
2000-12-14  2:35         ` Streams Quandry in Ada95 (SOLVED) Warren W. Gay VE3WWG
2000-12-14 12:08         ` Streams Quandry in Ada95 Robert Dewar
2000-12-14 14:19           ` Warren W. Gay VE3WWG
2000-12-14 21:43           ` Sergey Koshcheyev
2000-12-13 18:58     ` Anders Gidenstam [this message]
replies disabled

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