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=ham 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!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Mon, 11 Jul 2005 13:25:35 -0500 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <1120751455.846822.141050@z14g2000cwz.googlegroups.com> <1xuh1gs97pwwg$.1v4w9ruw1n2x$.dlg@40tude.net> <1PidncjOa5cWA1DfRVn-1Q@megapath.net> <28m5yx3jhzvu$.16u6va8093srl.dlg@40tude.net> Subject: Re: Unchecked_Conversion and task pointer. Date: Mon, 11 Jul 2005 13:28:42 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4952.2800 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4952.2800 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-arx2P5YIo9/d7Ey/Dbn8gz3LjUX1cdLqna7ly+nCQ+1cMppelaj3EMv3L+SQVsa5kOl2HnydMjSZb+V!fT/vgVdpXdAa3naODmGN1ANEKHPZR7+UKV9R8O/FtF5JaGsRv/a9d43xmyrW6n/o2WwJcaQqZJEr X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:11999 Date: 2005-07-11T13:28:42-05:00 List-Id: "Dmitry A. Kazakov" wrote in message news:tb8600lfqd2z.1l9etgzsgcls2.dlg@40tude.net... ... > > You can declare a task interface in Ada 200Y: > > > > type T_Int is task interface; > > > > I probably should have done that in my example. > > Can a task interface have entries? No, there are no stand-alone entries. But a procedure can match an entry and be called as an entry. > > You are allowed to use the primitive procedures of an interface in a timed > > entry call, and they will work as an entry in that case. > > Does it mean that in Ada 200Y any procedure of an interface can be used as > if it were an entry? Any primitive procedure of an interface, yes. If it is not an entry, it is treated as if it is immediately open. ... > > I wasn't (and am still not) convinced that this is the right design, but it > > certainly works and has the needed effects. I think there will be some > > confusion from a readability standpoint, but otherwise you can do everything > > with such a procedure that you can do with an entry (other than requeue it; > > no one can figure out how a dispatching requeue could work - it couldn't > > have been allowed if dispatching entries existed, either). > > Why? Ignoring misleading prefix notation can be ignored, to have a > dispatching requeue, the target task or protected object of the entry must > be class-wide: Well, you can't ignore the prefix (it determines whether it is an internal or external requeue). And I believe that there was another problem as well. (I don't remember what it was, sorry.) It certainly doesn't work with the "use a procedure like an entry" model, because it would make no sense to requeue on a procedure. Randy.