comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Behavior of Stream Attributes On Access Types.
Date: Wed, 12 Jun 2002 14:39:34 -0500
Date: 2002-06-12T14:39:34-05:00	[thread overview]
Message-ID: <ugf8t6bodbc45b@corp.supernews.com> (raw)
In-Reply-To: ae51vr$ar4$1@nh.pace.co.uk

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.






  parent reply	other threads:[~2002-06-12 19:39 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-10 19:38 Behavior of Stream Attributes On Access Types Marin David Condic
2002-06-11  5:33 ` R. Tim Coslet
2002-06-11 14:15   ` Marin David Condic
2002-06-11 13:47 ` Ted Dennison
2002-06-11 14:27   ` Marin David Condic
2002-06-11 14:37     ` Marin David Condic
2002-06-12 14:19       ` David C. Hoos
2002-06-12 15:18         ` Marin David Condic
2002-06-13  3:00           ` David C. Hoos, Sr.
2002-06-14 18:27           ` Simon Wright
2002-06-14 18:53             ` Marin David Condic
2002-06-15 14:56               ` Simon Wright
2002-06-16  2:27                 ` Randy Brukardt
2002-06-17 14:31                   ` Marin David Condic
2002-06-18 19:30                     ` Randy Brukardt
2002-06-12 19:39       ` Randy Brukardt [this message]
2002-06-12 13:31     ` Ted Dennison
2002-06-11 21:56   ` Randy Brukardt
2002-06-12  3:44 ` David C. Hoos, Sr.
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox