From: tmoran@acm.org
Subject: Re: Qs re 'Write & 'Read
Date: Tue, 10 Jun 2003 23:26:11 GMT
Date: 2003-06-10T23:26:11+00:00 [thread overview]
Message-ID: <nOtFa.1188350$F1.139910@sccrnsc04> (raw)
In-Reply-To: vecjg8j93gkkc7@corp.supernews.com
>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.
next prev parent reply other threads:[~2003-06-10 23:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-10 6:11 Qs re 'Write & 'Read tmoran
2003-06-10 12:53 ` Rodrigo Garcia
2003-06-10 17:55 ` David C. Hoos
2003-06-10 19:09 ` tmoran
2003-06-10 21:30 ` David C. Hoos
2003-06-10 23:26 ` tmoran [this message]
2003-06-11 1:31 ` David C. Hoos
2003-06-11 19:19 ` Thomas Wolf
2003-06-12 10:12 `
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox