From: "chris.danx" <chris.danx@ntlworld.com>
Subject: access types and head pains
Date: Sat, 26 May 2001 00:59:23 +0100
Date: 2001-05-26T00:59:23+01:00 [thread overview]
Message-ID: <LkCP6.2414$CT1.433610@news6-win.server.ntlworld.com> (raw)
hi,
I have the following situation. I'm writing a driver that can be run on my
system. I want to test it by writing virtually to a file.
The problem is i had the following code
package X is
type A is private
type A_ac is access all A;
...
procedure Do_S (av : in out A_ac; v : any_type );
-- with body
-- is begin
-- av.v := v; etc
end X;
procedure test is
at : aliased A;
begin
Do_S (at'unchecked_access, 2);
end test;
i got an error that said "at actual must be a variable". What's wrong?
The idea is that the driver will work with two different kinda things in the
same procedure. "at" can be declared in program or be a chunk of memory of the
same size. Any hints?
Thanks,
Chris
next reply other threads:[~2001-05-25 23:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-25 23:59 chris.danx [this message]
2001-05-26 4:39 ` access types and head pains Jeffrey Carter
2001-05-26 16:48 ` chris.danx
2001-05-26 17:17 ` Jeffrey Carter
2001-05-26 17:31 ` chris.danx
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox