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,af92cb4b0cc736af X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-31 06:11:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newspeer.clara.net!news.clara.net!server3.netnews.ja.net!newshost.central.susx.ac.uk!news.bton.ac.uk!not-for-mail From: John English Newsgroups: comp.lang.ada Subject: Re: problem with abstract types Date: Thu, 31 Oct 2002 13:15:43 +0000 Organization: University of Brighton Message-ID: <3DC12CFF.EC36842C@brighton.ac.uk> References: NNTP-Posting-Host: straumli.it.bton.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: saturn.bton.ac.uk 1036070101 11648 193.62.183.204 (31 Oct 2002 13:15:01 GMT) X-Complaints-To: news@bton.ac.uk NNTP-Posting-Date: 31 Oct 2002 13:15:01 GMT X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:30255 Date: 2002-10-31T13:15:01+00:00 List-Id: Ulrich Eckhardt wrote: > > procedure main is > reg : registry_Access; > err : r_error; > begin > reg := getRegistry(CLASS_USER,To_Unbounded_String("registrytest")); > openRegistry(reg'access,err); > end main; > > But when compiling this code i get a > main.adb:10:20: prefix of "access" attribute must be aliased Reg is already an access value; you don't need to use 'Access at all here. I think you'll find that this works: openRegistry(reg,err); ----------------------------------------------------------------- John English | mailto:je@brighton.ac.uk Senior Lecturer | http://www.it.bton.ac.uk/staff/je Dept. of Computing | ** NON-PROFIT CD FOR CS STUDENTS ** University of Brighton | -- see http://burks.bton.ac.uk -----------------------------------------------------------------