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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d4f6f490613e0fd8,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-25 17:03:47 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!dispose.news.demon.net!demon!btnet-peer0!btnet!news5-gui.server.ntli.net!ntli.net!news6-win.server.ntlworld.com.POSTED!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada Subject: access types and head pains X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Sat, 26 May 2001 00:59:23 +0100 NNTP-Posting-Host: 62.252.149.32 X-Complaints-To: abuse@ntlworld.com X-Trace: news6-win.server.ntlworld.com 990835115 62.252.149.32 (Sat, 26 May 2001 00:58:35 BST) NNTP-Posting-Date: Sat, 26 May 2001 00:58:35 BST Organization: ntlworld News Service Xref: archiver1.google.com comp.lang.ada:7789 Date: 2001-05-26T00:59:23+01:00 List-Id: 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