Logo etsi

ETSI's Bug Tracker

Notice: information submitted on the ETSI issue Tracker may be incorporated in ETSI publication(s) and therefore subject to the ETSI IPR policy.

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008223Part 01: TTCN-3 Core LanguageEditorialpublic28-03-2024 10:4228-03-2024 11:23
ReporterMatthias Simon 
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0008223: Invalid example
DescriptionEXAMPLE 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: -

 
TagsNo tags attached.
Clause Reference(s)19.4.2 -- The range based loop
Source (company - Author)Nokia - Matthias Simon
Attached Files

- Relationships

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

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

- 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


MantisBT 1.2.14 [^]
Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker