comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos" <david.c.hoos.sr@ada95.com>
Subject: Re: Behavior of Stream Attributes On Access Types.
Date: Wed, 12 Jun 2002 09:19:54 -0500
Date: 2002-06-12T09:19:54-05:00	[thread overview]
Message-ID: <mailman.1023891618.16755.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: ae51vr$ar4$1@nh.pace.co.uk


----- Original Message -----
From: "Marin David Condic ]" <dont.bother.mcondic.auntie.spam@[acm.org>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada.eu.org>
Sent: Tuesday, June 11, 2002 9:37 AM
Subject: Re: Behavior of Stream Attributes On Access Types.


> 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?
>
You only need to add read and write for the _access_ types.
'Output and 'Input are never overridden, as they always use
'Read and 'Write.

The only other cases for which I have had to override the standard
stream attributes is when there are machine endianess issues in
network representation of data.

Did you look at my example of how I do it?






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