Steve is usually right. I neglected to consider that suspend likely doesn't 
produce a result inside the expression it occurs in.

David

Sent from my BlackBerry 10 smartphone on the Rogers network.
  Original Message  
From: Steve Wampler
Sent: Saturday, August 13, 2016 12:51 PM
To: unicon-group@lists.sourceforge.net
Subject: Re: [Unicon-group] A semantic puzzle and question

On 08/13/2016 03:52 AM, Bruce & Breeanna Rennie wrote:
> 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?

Interesting. I think it will print 1,2,3 and quit. (The suspend is inner most
so it'll complete but then fail, so the & will fail. Then test() will fail,
causing the every in main to fail.

-- 
Steve Wampler -- swamp...@noao.edu
The gods that smiled on your birth are now laughing out loud.

------------------------------------------------------------------------------
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

Reply via email to