ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0007619 | Part 01: TTCN-3 Core Language | New Feature | public | 16-02-2017 14:59 | 04-01-2019 16:17

Reporter | Jacob Wieland - Spirent |
Assigned To | Gyorgy Rethy |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version | v4.9.1 (published 2017-05) |
Target Version | 4.11.1 (published 2019-05) | Fixed in Version | 4.11.1 (published 2019-05) |
Clause Reference(s) | 16.2, 20.2, 20.4
Source (company - Author) | Spirent - Jacob Wieland

Summary | 0007619: No named interleave construct available.

Description

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.

Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files | 7619.docx (101,443) 13-12-2017 12:43 http://oldforge.etsi.org/mantis/file_download.php?file_id=3727&type=bug 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
Date Modified | Username | Field | Change
16-02-2017 14:59 | Jacob Wieland - Spirent | New Issue |
06-06-2017 14:38 | Jens Grabowski | Project | TTCN-3 Change Requests => Part 01: TTCN-3 Core Language
06-06-2017 14:39 | Jens Grabowski | Assigned To | => Julien Deltour
06-06-2017 14:39 | Jens Grabowski | Status | new => assigned
24-10-2017 13:05 | Jens Grabowski | Note Added: 0014846 |
13-12-2017 12:43 | Julien Deltour | File Added: 7619.docx |
13-12-2017 12:43 | Julien Deltour | Note Added: 0014942 |
13-12-2017 12:43 | Julien Deltour | Status | assigned => confirmed
13-12-2017 12:43 | Julien Deltour | Assigned To | Julien Deltour => Jens Grabowski
13-12-2017 12:43 | Julien Deltour | Status | confirmed => assigned
05-01-2018 13:27 | Gyorgy Rethy | Product Version | => v4.9.1 (published 2017-05)
05-01-2018 13:27 | Gyorgy Rethy | Target Version | => 4.11.1 (published 2019-05)
05-02-2018 12:15 | Jacob Wieland - Spirent | Note Added: 0015055 |
05-02-2018 12:15 | Jacob Wieland - Spirent | Status | assigned => confirmed
18-07-2018 15:37 | Jens Grabowski | Assigned To | Jens Grabowski => Jacob Wieland - Spirent
18-07-2018 15:37 | Jens Grabowski | Status | confirmed => assigned
20-07-2018 08:59 | Jacob Wieland - Spirent | File Added: CR7619-2.docx |
20-07-2018 09:00 | Jacob Wieland - Spirent | Note Added: 0015184 |
20-07-2018 09:00 | Jacob Wieland - Spirent | Assigned To | Jacob Wieland - Spirent => Tomas Urban
20-07-2018 09:00 | Jacob Wieland - Spirent | Status | assigned => confirmed
20-07-2018 11:41 | Tomas Urban | Note Added: 0015189 |
20-07-2018 11:41 | Tomas Urban | Status | confirmed => resolved
20-07-2018 11:41 | Tomas Urban | Resolution | open => fixed
20-07-2018 11:41 | Tomas Urban | Assigned To | Tomas Urban => Gyorgy Rethy
04-01-2019 16:17 | Gyorgy Rethy | Note Added: 0015296 |
04-01-2019 16:17 | Gyorgy Rethy | Status | resolved => closed
04-01-2019 16:17 | Gyorgy Rethy | Fixed 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