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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!fx11.iad.POSTED!not-for-mail From: Shark8 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:35.0) Gecko/20100101 Thunderbird/35.0a1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: tasks as part of record References: <294a973f-5222-4aa3-8971-777cd2eb9174@googlegroups.com> <313c39ae-dd7b-4993-910a-0f28dfc35b65@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@teranews.com NNTP-Posting-Date: Mon, 13 Oct 2014 15:33:45 UTC Organization: TeraNews.com Date: Mon, 13 Oct 2014 09:33:40 -0600 X-Received-Bytes: 2040 X-Received-Body-CRC: 751645593 Xref: news.eternal-september.org comp.lang.ada:22423 Date: 2014-10-13T09:33:40-06:00 List-Id: On 10/13/2014 8:45 AM, compguy45@gmail.com wrote: > > > is there a way to access say Students(4) componenets while inside start entry? > Assuming the tasks are declared as: task type Student_Task (This : not null access Student) task_type Enrollment_Task(This : not null access Enrollment) and the records, Student & Enrollment, are as follows: type Student(N : Positive) is limited record ID_Number : Positive range 1 .. N; Name : Unbounded_String; Count : Integer ; Student_Op : Student_Task(Student'Access); end record; and type Student_Body is arrray(Positive range <>) of Student; type Enrollment(Number_of_Students : Positive) is limited record Students : Student_Body(1..Number_of_Students); Enroll : Enrollment_Task( Enrollment'Access ); end record; THEN inside the body of Enrollment_Task you could say: declare Quaddius : Student renames This.Students(4); begin -- Do what you will. end;