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,60d761814c33393c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-10 16:26:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newshub.sdsu.edu!elnk-pas-nf2!newsfeed.earthlink.net!wn14feed!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc04.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Qs re 'Write & 'Read References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc04 1055287571 12.234.13.56 (Tue, 10 Jun 2003 23:26:11 GMT) NNTP-Posting-Date: Tue, 10 Jun 2003 23:26:11 GMT Organization: AT&T Broadband Date: Tue, 10 Jun 2003 23:26:11 GMT Xref: archiver1.google.com comp.lang.ada:38941 Date: 2003-06-10T23:26:11+00:00 List-Id: >Maybe my mind's just in a fog today, but please explain why there'd be >a problem with any kind of access type -- general, or not, using my >approach. Aliasing. type phs is access integer; type pgs is access all integer; type r is record i : aliased integer; ph : phs; pg : pgs; end record; x : r; begin x.ph := new integer; x.pg := x.i'access; but on reading it back in, you can tell both x.ph and x.pg are non-null, but you don't know whether x.pg should allocate from the heap or point to some existing (stack) object.