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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,90b27c91e19c3731 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newspeer.monmouth.com!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!feeder.news-service.com!feed.xsnews.nl!feeder.xsnews.nl!151.189.20.20.MISMATCH!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: I/O streaming with custom data transport Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <17ayrefpaw84a$.2qy8q0wbzzwk.dlg@40tude.net> Date: Wed, 22 Nov 2006 11:31:15 +0100 Message-ID: <79hvsq397jad.gqs0q79z1smz.dlg@40tude.net> NNTP-Posting-Date: 22 Nov 2006 11:31:13 CET NNTP-Posting-Host: 09893bbd.newsspool3.arcor-online.net X-Trace: DXC=8YCOjDHX_fFk:C4l9A;OcOMcF=Q^Z^V3H4Fo<]lROoRAgUcjd<3m<;BA;PkK19L:TK[6LHn;2LCVN7enW;^6ZC`DF0oL On Wed, 22 Nov 2006 10:21:02 +0100, Maciej Sobczak wrote: > I don't understand. The focus here is on foo - which represents the set > of functions that can use the stream without really caring what the > stream is. OK, then it is just what Ada calls a class-wide subprogram: type My_Abstract_Stream is abstract new Root_Stream_Type ...; -- Somewhere else procedure Foo (S : in out My_Abstract_Stream'Class); -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de