P-1.1.10 #425
Replies: 2 comments
-
@ankushdesai : Thanks for continuing to make P work better for its users. Regarding this change in semantics, I was wondering if you considered the more drastic change of allowing the behavior you made for halt for any other event that has been installed in the state where the receive was encountered? It has been a while so I am not sure if my question even makes sense any more in the current state of P :-). |
Beta Was this translation helpful? Give feedback.
-
Thanks @shazqadeer, its all inspired from you! For your suggestion, I am not really sure if that is the desired behavior always. I do understand your proposal and I do feel thats the right choice for I have not yet gotten a request from a user saying "it would be great if receive inherited the action handlers from the state". I think we should wait for multiple users to have this request. But I do see your point and thanks! |
Beta Was this translation helpful? Give feedback.
-
Please upgrade to P version 1.1.10 whenever you get a chance.
There is a small change in the semantics of receive in the latest version of P.
In older versions, when a state machine was blocked on a
receive
statement sending ahalt
event to that machine would notHALT
the machine until the machine received the event it was blocked on (the machine would thenhalt
as it would dequeue the halt event after being unblocked ). In the new semantics, even when a machine is blocked on areceive
statement, sending ahalt
event from any machine would lead to unblocking of that machine and hence halting it. In otherwords, halt event is treated as a special event even in receive statements. This change in semantics is mainly because many users of P wanted a way in which they could halt or crash a P state machine even when its blocked on a receive statement.Please let me know if you have any questions. Cheers!
Beta Was this translation helpful? Give feedback.
All reactions