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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no 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 18:37:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newspeer.clara.net!news.clara.net!psiuk-p2!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Behavior of Stream Attributes On Access Types. Date: Wed, 12 Jun 2002 11:18:24 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: <4519e058.0206110547.526d2369@posting.google.com> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1023895108 7947 136.170.200.133 (12 Jun 2002 15:18:28 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 12 Jun 2002 15:18:28 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:25840 Date: 2002-06-12T15:18:28+00:00 List-Id: Yes. That was helpful. But I'm still curious about how it would be done with the scenario I described because I want to understand the inheritance issues. (I can see that it would be better to handle the access values as you describe, but in a more "general" sense - can you describe what happens with the 'Read and 'Write as we travel down the chain of inheritance?) Here's some code snippets to illustrate the questions I have... package Level_1 is type L1 is tagged record A : Integer ; end record ; -- -- Here I have L1'Read, L1'Write, L1'Input, L1'Output -- and L1'Class'Read L1'Class'Write L1'Class'Input L1'Class'Output -- end Level_1 ; package Level_1.Level_2 is type L2 is new Level_1.L1 with record B : Some_Access_Type := null ; end record ; -- -- Now I have to define my own 'Read and 'Write -- procedure My_Read .... for L2'Read use My_Read... procedure My_Write ..... for L2'Write use My_Write... -- -- Here I now have for free L2'Input, L2'Output -- Further L1'Class'Read L1'Class'Write L1'Class'Input L1'Class'Output -- will dispatch to My_Read and My_Write if an L2 parameter is passed? -- end Level_1.Level_2 ; package Level_1.Level_2.Level_3 is type L3 is new Level_2.L2 with record C : Integer ; end record ; -- -- Now must I define my own 'Read and 'Write??? -- procedure My_Read .... for L3'Read use My_Read... procedure My_Write ..... for L3'Write use My_Write... -- -- Or will a call to L1'Class'Write hit the "My_Write" from -- Level_2 to output the access type, then call the default -- 'Write for the new "C" field? -- end Level_1.Level_2.Level_3 ; MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com "David C. Hoos" wrote in message news:mailman.1023891618.16755.comp.lang.ada@ada.eu.org... > > Did you look at my example of how I do it? > > >