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 X-Received: by 2002:a6b:3e8a:: with SMTP id l132-v6mr11926305ioa.35.1524503073112; Mon, 23 Apr 2018 10:04:33 -0700 (PDT) X-Received: by 2002:a9d:2044:: with SMTP id n62-v6mr899748ota.4.1524503072531; Mon, 23 Apr 2018 10:04:32 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!f63-v6no3181514itc.0!news-out.google.com!b185-v6ni3063itb.0!nntp.google.com!f63-v6no3181512itc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 23 Apr 2018 10:04:32 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=47.185.233.194; posting-account=zwxLlwoAAAChLBU7oraRzNDnqQYkYbpo NNTP-Posting-Host: 47.185.233.194 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Using the "Terminated" aspect for a task passed to a generic From: "Dan'l Miller" Injection-Date: Mon, 23 Apr 2018 17:04:33 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2508 X-Received-Body-CRC: 4025732331 Xref: reader02.eternal-september.org comp.lang.ada:51682 Date: 2018-04-23T10:04:32-07:00 List-Id: On Monday, April 23, 2018 at 11:35:11 AM UTC-5, Dan'l Miller wrote: > On Monday, April 23, 2018 at 9:20:33 AM UTC-5, NiGHTS wrote: > > generic > >=20 > > type Managed_Task_Type is limited private; >=20 > Wait. Why can't we write: >=20 > generic > type Managed_Task_Type is limited task interface; > package WD is > ... >=20 > as per 12.5.5's AI95-00345 example in the _AARM:2012TC1_ page 527 (given = there without the > =E2=80=9Climited=E2=80=9D)? Oh, as per _AARM:2012TC1_'s 3.9.4's Syntax paragraph 2/2, the syntax doesn'= t support the limited there because of the subsequent 5/2's =E2=80=9C=E2=80= =A6 all task and protected interfaces are synchronized interfaces, and all synchronized interfaces are limited interfaces=E2=80=9D. So amended, it wo= uld revert to aforementioned example: Wait. Why can't OP modify the design to write: generic type Managed_Task_Type is task interface; package WD is ... // then the OP's design adjusted to pass in the task-interfaced type in= stead of having the package // contain a freshly-declared task. as per 12.5.5's AI95-00345 example in the _AARM:2012TC1_ page 527?