comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com (Ted Dennison)
Subject: Re: Behavior of Stream Attributes On Access Types.
Date: 11 Jun 2002 06:47:46 -0700
Date: 2002-06-11T13:47:46+00:00	[thread overview]
Message-ID: <4519e058.0206110547.526d2369@posting.google.com> (raw)
In-Reply-To: ae2v7f$r12$1@nh.pace.co.uk

"Marin David Condic" <dont.bother.mcondic.auntie.spam@[acm.org> wrote in message news:<ae2v7f$r12$1@nh.pace.co.uk>...
> My inclination is to think that the sensible thing would be to call the
> 'Read or 'Write for the thing pointed to by the access type, but this has

You can pretty much count on it *not* doing that. For instance, what
would happen in that case with a circularly-referenced structure like
a doubly-linked list?


> implications for dynamically allocated objects. Will it write/read a
> (totally useless) access value?

Pretty much. It isn't *totally* useless. It will work just fine within
the same execution (assuming you don't deallocate the memory).
However, it is next to useless.

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.


-- 
T.E.D. 
Home     -  mailto:dennison@telepath.com (Yahoo: Ted_Dennison)
Homepage -  (temporarily down)



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