From: callen@inmet.UUCP
Subject: Re: A Problem With Access Types
Date: Fri, 10-Apr-87 14:42:00 EST [thread overview]
Date: Fri Apr 10 14:42:00 1987
Message-ID: <124000003@inmet> (raw)
In-Reply-To: 9954@skl-crc.ARPA
Try something like this (but be forewarned that the code is not necessarily
going to be portable):
with Unchecked_Conversion;
with System;
...
type A_REC is
record
...
end;
type A_ACCESS is access A_REC;
function Make_Pointer is new Unchecked_Conversion(
SOURCE=>System.Address, TARGET=>A_ACCESS);
A : A_REC;
A_A : A_ACCESS;
begin
...
A_A := Make_Pointer(A'Address);
UPDATE(A_A);
...
end;
-- Jerry Callen
Intermetrics, Inc.
733 Concord Ave.
Cambridge, MA 01238
(617) 661-1840
...{ihnp4,ima}!inmet!ada-uts!callen
next parent reply other threads:[~1987-04-10 19:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <9954@skl-crc.ARPA>
1987-04-10 19:42 ` callen [this message]
1987-04-12 16:44 ` A Problem With Access Types dik
1987-04-08 16:52 bradford
1987-04-12 7:54 ` Randell Jesup
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox