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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 23 Jul 2017 15:05:19 -0500 From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: Feature suggestion: different task schedules Date: Sun, 23 Jul 2017 16:05:19 -0400 Organization: IISS Elusive Unicorn Message-ID: <75v9nch4cutg0s3vgk6luc2kc656u6qo32@4ax.com> References: <42284bba-65d6-4dfc-886e-3ea929b3ad5f@googlegroups.com> User-Agent: ForteAgent/8.00.32.1272 X-No-Archive: YES MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 108.73.116.1 X-Trace: sv3-KjmDPxo4F7Mdt6tBlvbtKocerW+4FGJBt+LYuclNWQ/t1+lUsn4gJR42FS5KdSkjWyXmK5QQOlnie4K!4A57GUdXpukPpTlmMhelgJ22m+u/j9Ugt5OxCDpZu9EKskSIl/nx7mdnCgmm+KBODH0eyO5Oyt0k!fIumSur3sWnr+hixpAoiMqFuBQ== 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.40 X-Original-Bytes: 2891 X-Received-Bytes: 3013 X-Received-Body-CRC: 3051538100 Xref: news.eternal-september.org comp.lang.ada:47502 Date: 2017-07-23T16:05:19-04:00 List-Id: On Sun, 23 Jul 2017 07:19:37 -0700 (PDT), Egil H H declaimed the following: >On Sunday, July 23, 2017 at 2:31:29 PM UTC+2, Victor Porton wrote: >> It seems that for this we need to introduce something like "multi" accept >> statement, > >Do you mean like the selective accept (RM 9.7.1)? > Given my impression was totally the opposite, any proposal from the OP will need to be completely and clearly defined in behavior in order to reach a consensus. I was thinking this was something to do with (using Python's yield as the example) multiple breakpoints (accepts) responding in sequence but with only a single external name. IOW: Python executes code up through the next yield when invoked, and the object is blocked after the yield returns a value. Ada accept OTOH blocks waiting for the invocation and continues executing code after the resultant rendezvous (only be putting all the code within the accept blocks can you get something similar). def theName(): while True: x = do_something() yield x #block after yield x = do_something_else() yield x #block after yield vs (apologies for the pseudo-Ada syntax) loop #block before accept accept theName(out x : sometype) do x = do_something; end theName; #block before accept accept theName(out x : sometype) do x = do_something_else; end theName; -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/