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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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-11 06:47:46 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: Behavior of Stream Attributes On Access Types. Date: 11 Jun 2002 06:47:46 -0700 Organization: http://groups.google.com/ Message-ID: <4519e058.0206110547.526d2369@posting.google.com> References: NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1023803266 14900 127.0.0.1 (11 Jun 2002 13:47:46 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 11 Jun 2002 13:47:46 GMT Xref: archiver1.google.com comp.lang.ada:25741 Date: 2002-06-11T13:47:46+00:00 List-Id: "Marin David Condic" wrote in message news:... > 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)