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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7876e4356325725b X-Google-Attributes: gid103376,public From: Steve Quinlan Subject: Re: Ada.Streams examples Date: 1999/03/11 Message-ID: <36E82E5B.6C1B4050@nospam.lmco.com>#1/1 X-Deja-AN: 453935737 Content-Transfer-Encoding: 7bit References: <36e61db4.50430543@news.pacbell.net> <7c64kl$r8s$1@nnrp1.dejanews.com> <36e6cd2c.3377267@news.pacbell.net> <7c753p$3t7@dfw-ixnews3.ix.netcom.com> <36E7EFCF.82A87270@nospam.lmco.com> <7c91k2$9fl@sjx-ixn10.ix.netcom.com> Content-Type: text/plain; charset=us-ascii Organization: Lockheed-Martin Air Traffic Management Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-03-11T00:00:00+00:00 List-Id: Richard D Riehle wrote: > Perhaps I should have said, it is possible to override the Read and Write > operations so they behave exactly as you want them to. In fact, the > procedures Read and Write, in package Ada.Streams, are abstract so they > must be overridden. Note: we are not talking of Ada.Streams.Stream_IO. > We are talking about the parent package Ada.Streams (LRM 13.13.1). > Notice how useful this is in Ada.Exceptions from the GNAT compiler. > > Richard OK, that's clearer. I understand that when you define a new stream type derived from root_stream_class you have to implement the read and write procedures that override Ada.Streams. But what GNAT did was to override the 'read and 'write attributes.