Hi Johan,
I don't see your problems:
> What I am asking is, will the 'life after alt' log ever execute in this
> case?
It will be executed after
- log("reached leaf A")
and after
> alt
> {
> []PCO1.receive
> {
> log("reached leaf B");
> }
> }
(which is the 'alt within the alt')
if you want a repetition of the top alt after the 'alt within the alt',
it will look like:
> []PCO1.receive
> {
> alt
> {
> []PCO1.receive
> {
> log("reached leaf B");
> }
> }
repeat; //Here ist the repeat for the top alt
> }
Hope I understood your questions.
Regards
Jens
Johan Nordin wrote:
> Hi all,
>
> Our discussion recently got me thinking some more, and I ran into a problem.
>
> This will sound like a dumb question, but I can't figure this one out from
> the standard: What is the semantics of an alt statement w.r.t flow of
> control after executing a leaf node?
>
> Example:
>
>
> ...
>
> alt
> {
> []PCO1.receive(something)
> {
> log("reached leaf A");
> }
> []PCO1.receive
> {
> alt
> {
> []PCO1.receive
> {
> log("reached leaf B");
> }
> }
> }
> }
>
> log("Is there life after the alt?");
>
> ...
>
> What I am asking is, will the 'life after alt' log ever execute in this
> case?
> In TTCN-2, execution halted at the leaves, is the same true in TTCN-3?
> How do you 'repeat' from the top-level alt after reaching leaf B without
> using GOTO?
>
> Regards,
> /Johan
--
======================================================================
Prof. Dr. Jens Grabowski
Institute for Informatics phone: +49 551 39 14690
University of Goettingen fax: +49 551 39 14415
Lotzestrasse 16-18
DE-37083 Göttingen
This email address is being protected from spambots. You need JavaScript enabled to view it.
(Germany)
www.swe.informatik.uni-goettingen.de
======================================================================