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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,77a30ff64a5db4c5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-22 19:48:48 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!chcgil2-snh1.gtei.net!news.gtei.net!wn12feed!wn14feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail Reply-To: "James S. Rogers" From: "James S. Rogers" Newsgroups: comp.lang.ada References: Subject: Re: Understanding Rendezvous X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: Date: Sun, 23 Feb 2003 03:48:47 GMT NNTP-Posting-Host: 12.86.39.155 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1045972127 12.86.39.155 (Sun, 23 Feb 2003 03:48:47 GMT) NNTP-Posting-Date: Sun, 23 Feb 2003 03:48:47 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:34455 Date: 2003-02-23T03:48:47+00:00 List-Id: "Chris" wrote in message news:a5589416.0302221942.5c0034e5@posting.google.com... > Hello, > I am trying to get a grip on how to do different things with Ada, > using rendezvous. What I desire is a selective accept that will have a > condition of something like "if this accept is waiting, processes it" > and the alternate portion of the select will be OTHER code, just > general code that does whatever (no accepts). I tried it with a > 'delay' but did not get the proper results. > > I.E.: > > loop > select > when Accept_Ready => > accept Data (...,...) do > ... > end Data; > or > print_this_compute_that(); > end select; > end loop; > You need to use a selective accept with an "else" alternative. loop select accept Data(...,...) do ... end Data; else print_this_compute_that; end select; end loop; Jim Rogers