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,6bf481efd29cf77b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-12 12:45:15 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Behavior of Stream Attributes On Access Types. Date: Wed, 12 Jun 2002 14:39:34 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <4519e058.0206110547.526d2369@posting.google.com> X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:25819 Date: 2002-06-12T14:39:34-05:00 List-Id: Marin David Condic wrote in message ... ... >Then, just to make it more interesting, I inherit from the >second type and add more (non-access) fields. I *must* override my own 'Read >and 'Write to include the newly added fields? Or will it dispatch to the >'Read and 'Write in the second level, then go on to call the defaults for >the newly added fields? The Ada 95 standard doesn't address this. The Technical Corrigendum does, and requires that the default implementation is calls the parent type's 'Read and 'Write. So you are not required to override. But be sure that your compiler is implementing the TC (tests for this area have only recently been added to the ACATS, so it is not unlikely that compilers don't follow the TC in this area). Randy Brukardt.