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!mx02.eternal-september.org!feeder.eternal-september.org!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!reality.xs3.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Taking 'Access of single task/protected object Date: Thu, 7 Jan 2016 17:52:47 -0600 Organization: JSA Research & Innovation Message-ID: References: NNTP-Posting-Host: rrsoftware.com X-Trace: loke.gir.dk 1452210768 6797 24.196.82.226 (7 Jan 2016 23:52:48 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 7 Jan 2016 23:52:48 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:29053 Date: 2016-01-07T17:52:47-06:00 List-Id: "Jeffrey R. Carter" wrote in message news:n6m9s5$gs7$1@dont-email.me... ... > Presumably the desire is to have multiple single tasks, all with an entry > Something, so that the operations of the type can call different tasks. In > this > situation, there would be a finite set of known single tasks, so the type > could > hold the task ID of the appropriate task, and operations could select the > task > to call based on the ID. That's the point of task interfaces: each such task would have the task interface as a progenitor. You'd still need to give the task type a name, but what's the harm in that? There's no reason to use a single task other than convinience, and once you're code gets complex enough, "convinience" should be the last of your concerns. Randy. >Jeff Carter >"My brain hurts!" Seems appropriate when talking about task interfaces. ;-) > -- > Jeff Carter > "My brain hurts!" > Monty Python's Flying Circus > 21