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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7769c087a4d30c0e X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Unchecked_Conversion and task pointer. Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1120751455.846822.141050@z14g2000cwz.googlegroups.com> <1xuh1gs97pwwg$.1v4w9ruw1n2x$.dlg@40tude.net> <1PidncjOa5cWA1DfRVn-1Q@megapath.net> Date: Fri, 8 Jul 2005 09:48:54 +0200 Message-ID: <28m5yx3jhzvu$.16u6va8093srl.dlg@40tude.net> NNTP-Posting-Date: 08 Jul 2005 09:48:02 MEST NNTP-Posting-Host: bbcb63bb.newsread4.arcor-online.net X-Trace: DXC=DOJiW9H>LFVD__2dTlB=E[:ejgIfPPldTjW\KbG]kaMXliQbn6H@_EY?f700Hl:;R\[6LHn;2LCV^7enW;^6ZC`T<=9bOTW=MN^ X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:11959 Date: 2005-07-08T09:48:02+02:00 List-Id: On Thu, 7 Jul 2005 16:31:51 -0500, Randy Brukardt wrote: > "Dmitry A. Kazakov" wrote in message > news:1xuh1gs97pwwg$.1v4w9ruw1n2x$.dlg@40tude.net... > ... >> Task types are not tagged in Ada (alas). > > Task types that inherit from an interface are tagged in Ada 200Y. Yes. >> So if you are trying to have a >> kind of task types hierarchy you should use mix-in. > > No, you should definitely use an interface. It depends. Tasks are still non-tagged in the sense that you cannot have a "task" interface. In an interface Who_Am_I can only be a *procedure*, which could be then implemented by an entry. But it should an *entry* from the beginning if the intent is to have a dispatching entry Who_Am_I called using, say, timed entry call. In that case mix-in will be the only workaround. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de