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: Richard D Riehle Subject: Re: Ada.Streams examples Date: 1999/03/11 Message-ID: <7c91k2$9fl@sjx-ixn10.ix.netcom.com>#1/1 X-Deja-AN: 453880816 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> Organization: Netcom X-NETCOM-Date: Thu Mar 11 10:21:54 AM PST 1999 Newsgroups: comp.lang.ada Date: 1999-03-11T10:21:54-08:00 List-Id: In article <36E7EFCF.82A87270@nospam.lmco.com>, Steve Quinlan wrote: >Richard D Riehle wrote: > >> Note that Exception_Occurrence is a record. Therfore, it is necessary to create Read and Write operations for it >> since none currently exist. > >Why would there not be read and write operations available? Those attributes are supported for composite types, aren't >they? > 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