Good evening David, Thank you for your response. What I have been able to work out is that it is not at all obvious what the results will be.
The non-obvious part is that suspend is very like every except that a result is returned to the caller, if the expression attached to the suspend returns a result. My test program is getting bigger. regards Bruce Rennie On 13/08/16 23:47, David.gamey wrote: > Interesting. > > My guess is it suspends 1 then completes the & (1 to 3), then suspends 2 etc > until it fails. > > If in doubt as to the source change the ranges so they're different. > > David > > Sent from my BlackBerry 10 smartphone on the Rogers network. > Original Message > From: Bruce & Breeanna Rennie > Sent: Saturday, August 13, 2016 8:34 AM > To: Jay Hammond; unicon-group@lists.sourceforge.net > Subject: Re: [Unicon-group] A semantic puzzle and question > > Good evening Jay, > > Thanks for responding. Based on a modification suggested by your > comments below, It doesn't appear to do what you have suggested. I have > discovered though that if the result given to return is failure, return > returns failure. If the result of the expression in suspend is failure, > suspend appears to fail and not return at all. > > This is good, it is expanding my understanding of what suspend does and > how it interacts with things like every is not obvious but does appear > to be logical (at least at this point). > > regards > > Bruce Rennie > > > On 13/08/16 21:51, Jay Hammond wrote: >> I don't know either. >> >> I guess that: >> >> suspend evaluates, but before it allows test to finish, "& " needs to >> be evaluated. Each initial evaluation of (1 to 3) succeeds evaluating >> as 1. I think the (1 to 3) expression refreshes each time test is >> called. The & succeeds - the & expression returns its right hand >> side to every as the (unused) result, i.e. 1,1,1. Evaluation of the >> every expression succeeds and the suspend is acted upon. There are 3 >> suspensions of test, 1,2,3 and then it fails. >> >> This is pure seat of the pants guesswork. No reference to the >> documentation, just memory. >> I'm usually wrong about what iterators do. But my thought process >> might amuse the experts. >> >> J >> >> On 13/08/2016 12:00, Sergey Logichev wrote: >>> It's seems very provacative! From logical point of view I suggest >>> output as double sequence 1,2,3. >>> But actually, I do not know! >>> Best regards, >>> Sergey >>> 13.08.2016, 13:53, "Bruce & Breeanna Rennie" <bren...@dcsi.net.au>: >>>> Good evening to all, >>>> >>>> I have written the following test program >>>> >>>> procedure main() >>>> every write(test()) >>>> end >>>> >>>> procedure test() >>>> every (suspend 1 to 3) & (1 to 3) >>>> end >>>> >>>> >>>> Based on what is understood from the semantics of unicon, what do >>>> people >>>> believe this should do? >>>> >>>> As a part of a specific side project I am working on, I am >>>> investigating >>>> some of the conditions of unicon/icon semantics. >>>> >>>> Any thoughts will be welcome. I do ask that nobody actually compile and >>>> run this just yet. I want to see what people think first before >>>> discussing the results obtained. >>>> >>>> regards >>>> >>>> Bruce Rennie >>>> >>>> ------------------------------------------------------------------------------ >>>> What NetFlow Analyzer can do for you? Monitors network bandwidth and >>>> traffic >>>> patterns at an interface-level. Reveals which users, apps, and >>>> protocols are >>>> consuming the most bandwidth. Provides multi-vendor support for >>>> NetFlow, >>>> J-Flow, sFlow and other flows. Make informed decisions using capacity >>>> planning reports. http://sdm.link/zohodev2dev >>>> _______________________________________________ >>>> Unicon-group mailing list >>>> Unicon-group@lists.sourceforge.net >>>> <mailto:Unicon-group@lists.sourceforge.net> >>>> https://lists.sourceforge.net/lists/listinfo/unicon-group >>>> >>> >>> ------------------------------------------------------------------------------ >>> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic >>> patterns at an interface-level. Reveals which users, apps, and protocols are >>> consuming the most bandwidth. Provides multi-vendor support for NetFlow, >>> J-Flow, sFlow and other flows. Make informed decisions using capacity >>> planning reports.http://sdm.link/zohodev2dev >>> >>> >>> _______________________________________________ >>> Unicon-group mailing list >>> Unicon-group@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/unicon-group >> >> >> ------------------------------------------------------------------------------ >> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic >> patterns at an interface-level. Reveals which users, apps, and protocols are >> consuming the most bandwidth. Provides multi-vendor support for NetFlow, >> J-Flow, sFlow and other flows. Make informed decisions using capacity >> planning reports. http://sdm.link/zohodev2dev >> >> >> _______________________________________________ >> Unicon-group mailing list >> Unicon-group@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/unicon-group > > ------------------------------------------------------------------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > patterns at an interface-level. Reveals which users, apps, and protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning reports. http://sdm.link/zohodev2dev > _______________________________________________ > Unicon-group mailing list > Unicon-group@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/unicon-group > > ------------------------------------------------------------------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > patterns at an interface-level. Reveals which users, apps, and protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning reports. http://sdm.link/zohodev2dev > _______________________________________________ > Unicon-group mailing list > Unicon-group@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/unicon-group > ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://sdm.link/zohodev2dev _______________________________________________ Unicon-group mailing list Unicon-group@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unicon-group