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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: tasks as part of record Date: Sun, 05 Oct 2014 22:43:13 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <294a973f-5222-4aa3-8971-777cd2eb9174@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Mon, 6 Oct 2014 05:43:14 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="2cce0a40174b83136a5e3a34df5b5ee7"; logging-data="29632"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+SS8c0Gr/KMVWlCIwr0y/X6AVaIocKnNQ=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 In-Reply-To: Cancel-Lock: sha1:Oad2RLSEx1N9lkgg1Vm0FYR61WU= Xref: news.eternal-september.org comp.lang.ada:22123 Date: 2014-10-05T22:43:13-07:00 List-Id: On 10/05/2014 08:47 PM, Stribor40 wrote: > I though it would be easier if task is componenet of record. What i would > like is that every time task runs i would like to operate on components of > student record. > > For example for each student there will be one tasks. When each tasks run i > want it to identify yourself to the screen with student number value. For > example Typically this should be done by having the components in the task, rather than the task in a record. That is, rather than task type Actor is ... end Actor; type R is record F1 : ...; F2 : ...; T : Actor; end record; it's usually better to have task body Actor is F1 : ...; F2 : ...; -- Jeff Carter "Saving keystrokes is the job of the text editor, not the programming language." Preben Randhol 64