comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <dont.bother.mcondic.auntie.spam@[acm.org>
Subject: Re: Behavior of Stream Attributes On Access Types.
Date: Tue, 11 Jun 2002 10:37:45 -0400
Date: 2002-06-11T14:37:47+00:00	[thread overview]
Message-ID: <ae51vr$ar4$1@nh.pace.co.uk> (raw)
In-Reply-To: ae51cc$9ok$1@nh.pace.co.uk

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" <dennison@telepath.com> 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.
> >






  reply	other threads:[~2002-06-11 14:37 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 [this message]
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
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