ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details
0007619Part 01: TTCN-3 Core LanguageNew Featurepublic16-02-2017 14:5904-01-2019 16:17
Jacob Wieland - Spirent 
Gyorgy Rethy 
normalminorhave not tried
closedfixed 
v4.9.1 (published 2017-05) 
4.11.1 (published 2019-05)4.11.1 (published 2019-05) 
16.2, 20.2, 20.4
Spirent - Jacob Wieland
0007619: No named interleave construct available.
The interleave statement is explained as shorthand notation for more complicated alt-statements processing the interleave branches in an interleaving-parallel fashion.

For normal alt statements, the possibility to de-inline them by defining them as a teststep and then referencing them from multiple places exists, while for interleave, this is not possible. That means that if the same interleave statement is needed in multiple places, it needs to be copied which is bad for code maintenance and readability.

As a workaround, at the moment, the interleave statement can be put into a function, but then this cannot be used in the place of altsteps in the event-part of an alt-statement, but only as a new top-level interleave.

For better compositionality and consistency, we thus propose to allow to define interleave altsteps and to allow to use such altsteps wherever a normal altstep reference is allowed, i.e.

altstep I() interleave {
< local variable declarations that live during the duration of this block >
[] ...
[] ...
}

alt {
[] I() { ... }
[] ...
}

The syntactic changes to the language would be minimal and fully backward compatible.
No tags attached.
docx 7619.docx (101,443) 13-12-2017 12:43
http://oldforge.etsi.org/mantis/file_download.php?file_id=3727&type=bug
docx CR7619-2.docx (161,943) 20-07-2018 08:59
http://oldforge.etsi.org/mantis/file_download.php?file_id=3782&type=bug
Issue History
16-02-2017 14:59Jacob Wieland - SpirentNew Issue
06-06-2017 14:38Jens GrabowskiProjectTTCN-3 Change Requests => Part 01: TTCN-3 Core Language
06-06-2017 14:39Jens GrabowskiAssigned To => Julien Deltour
06-06-2017 14:39Jens GrabowskiStatusnew => assigned
24-10-2017 13:05Jens GrabowskiNote Added: 0014846
13-12-2017 12:43Julien DeltourFile Added: 7619.docx
13-12-2017 12:43Julien DeltourNote Added: 0014942
13-12-2017 12:43Julien DeltourStatusassigned => confirmed
13-12-2017 12:43Julien DeltourAssigned ToJulien Deltour => Jens Grabowski
13-12-2017 12:43Julien DeltourStatusconfirmed => assigned
05-01-2018 13:27Gyorgy RethyProduct Version => v4.9.1 (published 2017-05)
05-01-2018 13:27Gyorgy RethyTarget Version => 4.11.1 (published 2019-05)
05-02-2018 12:15Jacob Wieland - SpirentNote Added: 0015055
05-02-2018 12:15Jacob Wieland - SpirentStatusassigned => confirmed
18-07-2018 15:37Jens GrabowskiAssigned ToJens Grabowski => Jacob Wieland - Spirent
18-07-2018 15:37Jens GrabowskiStatusconfirmed => assigned
20-07-2018 08:59Jacob Wieland - SpirentFile Added: CR7619-2.docx
20-07-2018 09:00Jacob Wieland - SpirentNote Added: 0015184
20-07-2018 09:00Jacob Wieland - SpirentAssigned ToJacob Wieland - Spirent => Tomas Urban
20-07-2018 09:00Jacob Wieland - SpirentStatusassigned => confirmed
20-07-2018 11:41Tomas UrbanNote Added: 0015189
20-07-2018 11:41Tomas UrbanStatusconfirmed => resolved
20-07-2018 11:41Tomas UrbanResolutionopen => fixed
20-07-2018 11:41Tomas UrbanAssigned ToTomas Urban => Gyorgy Rethy
04-01-2019 16:17Gyorgy RethyNote Added: 0015296
04-01-2019 16:17Gyorgy RethyStatusresolved => closed
04-01-2019 16:17Gyorgy RethyFixed in Version => 4.11.1 (published 2019-05)

Notes
(0014846)
Jens Grabowski   
24-10-2017 13:05   
STF discussion: Requires proposal and possibly further discussion.
(0014942)
Julien Deltour   
13-12-2017 12:43   
Porposal uploaded.
(0015055)
Jacob Wieland - Spirent   
05-02-2018 12:15   
I have looked over the proposal.

There are some small English grammar issues (missing articles and suchlike).

There is no restriction section. (The same restrictions as for normal interleave shall apply)
(0015184)
Jacob Wieland - Spirent   
20-07-2018 09:00   
please review
(0015189)
Tomas Urban   
20-07-2018 11:41   
Reviewed, no issues found. The proposal is ready to be added to the next version of the core language standard.
(0015296)
Gyorgy Rethy   
04-01-2019 16:17   
Added to draft V4.10.2