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

ID | Project | Category | View Status | Date Submitted | Last Update
0008223 | Part 01: TTCN-3 Core Language | Editorial | public | 28-03-2024 10:42 | 21-11-2024 15:14

Reporter | Matthias Simon |
Assigned To | Matthias Simon |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | resolved | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version |  | Fixed in Version |  |
Clause Reference(s) | 19.4.2 -- The range based loop
Source (company - Author) | Nokia - Matthias Simon

Summary | 0008223: Invalid example

Description

EXAMPLE 3:
// Iterate over partially initialized ranges
//
var integer e, i := 0;
for (e in {1, -, -}) {
i++;
}
log("final value:", e);
// Output:
// 0
// 1
// 2
//final value: -
Output does not match expected behavior. Example should be:
EXAMPLE 3:
// Iterate over partially initialized ranges
//
var integer e, i := 0;
for (e in {1, -, 3}) {
log(i, e)
i++;
}
log("final value:", e);
// Output:
// 0 1
// 1 UNINITIALIZED
// 2 3
// final value: 3
//final value: -

Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files |

Issue History
Date Modified | Username | Field | Change
28-03-2024 10:42 | Matthias Simon | New Issue |
28-03-2024 11:23 | Matthias Simon | Note Added: 0016622 |
19-11-2024 13:28 | Jens Grabowski | Assigned To | => Matthias Simon
19-11-2024 13:28 | Jens Grabowski | Status | new => assigned
19-11-2024 13:29 | Jens Grabowski | Note Added: 0016689 |
21-11-2024 15:14 | Matthias Simon | Note Added: 0016697 |
21-11-2024 15:14 | Matthias Simon | Status | assigned => resolved
21-11-2024 15:14 | Matthias Simon | Resolution | open => fixed

Notes

(0016622)
Matthias Simon
28-03-2024 11:23

Last line was left by accident `//final value: -` and should be removed.

(0016689)
Jens Grabowski
19-11-2024 13:29

Correct example, to be implemented in v4.17

(0016697)
Matthias Simon
21-11-2024 15:14

Will be continued here: https://labs.etsi.org/rep/mts/ttcn3/standard/-/issues/23 [^]