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 00:28:38 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!bnewspeer01.bru.ops.eu.uu.net!emea.uu.net!news.tiscali.nl!news-x2.support.nl!psinet-eu-nl!psiuk-p4!uknet!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: Tue, 11 Jun 2002 10:37:45 -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 1023806267 11108 136.170.200.133 (11 Jun 2002 14:37:47 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 11 Jun 2002 14:37:47 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:25780 Date: 2002-06-11T14:37:47+00:00 List-Id: Just to make sure I'm getting this correct in my brain, try this one out for me: I have a tagged record that does not have any access values in it, so using the standard-issue 'Output and 'Input is just fine. I inherit from this and add some access values, so I need to create my own 'Read and 'Write, correct? (But not 'Output and 'Input) Then, 'Output and 'Input for that descendent should work correctly without overriding anything, right? Further, using the base type's 'Class'Output and 'Class'Input should work correctly by dispatching up the ladder to find my home-grown 'Read and 'Write, correct? 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? My brain hurts! :-) MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com > "Ted Dennison" wrote in message > news:4519e058.0206110547.526d2369@posting.google.com... > > If you want better behavior, its up to you to override 'Write and > > 'Read for your pointer type. Then you can code it to handle things > > like circular references and deallocating the target's old value on a > > 'Read. > >