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,7916caeb194e9cc2,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-12 11:04:06 PST Path: supernews.google.com!sn-xit-03!supernews.com!news-feed.riddles.org.uk!skynet.be!louie!not-for-mail From: "Tom De Muer" Newsgroups: comp.lang.ada Subject: Problem with intertask comm Date: Thu, 12 Apr 2001 19:58:37 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: <3ad5ecf3$0$191$456d72a3@news.skynet.be> Organization: -= Skynet Usenet Service =- NNTP-Posting-Host: 217.136.121.109 X-Trace: 987098355 reader0.news.skynet.be 191 217.136.121.109 X-Complaints-To: abuse@skynet.be Xref: supernews.google.com comp.lang.ada:6829 Date: 2001-04-12T19:58:37+02:00 List-Id: Hi, I'm doing the same assignment as Pieter Thysebaert who posted a message some days ago but I came across another problem: "The prefix to 'ACCESS shall not be statically deeper than that of the expected type, Continuing" The problem is located between **: -- begin code declare monitor_data_a : aliased Monitor_Data := (Patient => 1); monitor_machine_a : aliased MonitorTask(info_for_monitor => monitor_data_a'Access); ** ** patient_data_a : aliased Patient_Data := (id => 1, my_monitor => monitor_machine_a'access); ** ** patient_a : PatientTask(info_for_patient => patient_data_a'access); begin null; end; -- end code What am I doing wrong here? Is the monitor_machine_a'access not available yet? I thought that was the problem so I declared the patient_data_a & patient_a in a subblock but same problem there. Any help appreciated, Tom De Muer