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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5ee499d03212eed3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-08 17:40:02 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!cyclone.bc.net!sjcppf01.usenetserver.com!usenetserver.com!news-west.rr.com!lsnws01.we.mediaone.net!typhoon.san.rr.com!not-for-mail Message-ID: <3BC2475D.535D4E72@san.rr.com> From: Darren New Organization: Boxes! X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Dynamic dispatch again References: <3BC1F97E.6EA2F1E7@san.rr.com> <_trw7.16605$IY3.11751097@news1.rdc1.sfba.home.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 09 Oct 2001 00:40:13 GMT NNTP-Posting-Host: 66.75.151.160 X-Complaints-To: abuse@rr.com X-Trace: typhoon.san.rr.com 1002588013 66.75.151.160 (Mon, 08 Oct 2001 17:40:13 PDT) NNTP-Posting-Date: Mon, 08 Oct 2001 17:40:13 PDT Xref: archiver1.google.com comp.lang.ada:13976 Date: 2001-10-09T00:40:13+00:00 List-Id: tmoran@acm.org wrote: > > >Right now, my alternative is ... . Ugly. > I've *always* found that if something was ugly/difficult in Ada, > after some thought it would become clear that the approach was in > fact a poor one, and a different approach, which worked nicely in > Ada, was a better one. (Not to say that this alternative nice > approach in this case is obvious. ;) Well, that's kind of why I'm posting here. I'm not sure what the right approach to dynamically dispatching an entry to one of N different tasks might be. Someone earlier mentioned using "requeue", but that seems to suffer the same problems. I've thought of any number of different approaches, and they're all ugly, since the point is to have a bunch of different tasks running, and all the alternate approaches involve not dealing with tasks. It seems Ada isn't quite as orthogonal as could be hoped. -- Darren New San Diego, CA, USA (PST). Cryptokeys on demand. Who is this Dr. Ibid anyway, and how does he know so much?