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

ID | Project | Category | View Status | Date Submitted | Last Update
0008109 | Part 01: TTCN-3 Core Language | Clarification | public | 16-08-2022 07:51 | 17-08-2022 08:12

Reporter | Matthias Simon |
Assigned To | Jens Grabowski |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | won't fix |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version |  | Fixed in Version |  |
Clause Reference(s) | Core Language Spec
Source (company - Author) | Nokia - Matthias Simon

Summary | 0008109: Examples for map templates needed

Description

The core language standard states that all component data types my be used to create templates. It should include the map data types.
However I am missing some examples, how matching would look like. Would this be valid TTCN-3:
// type map from integer to integer M;
var M m := { [1] := 1, [2] := 4, [3] := 9, [4] := 16 }
log(match(m, M:{[3]:=9, *}) // logs true
log(match(m.to, M.to:{9, *}) // logs true

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

Issue History
Date Modified | Username | Field | Change
16-08-2022 07:51 | Matthias Simon | New Issue |
16-08-2022 08:40 | Jens Grabowski | Note Added: 0016211 |
16-08-2022 14:17 | Jens Grabowski | Project | TTCN-3 Change Requests => Part 01: TTCN-3 Core Language
17-08-2022 08:12 | Jens Grabowski | Assigned To | => Jens Grabowski
17-08-2022 08:12 | Jens Grabowski | Status | new => assigned
17-08-2022 08:12 | Jens Grabowski | Status | assigned => closed
17-08-2022 08:12 | Jens Grabowski | Resolution | open => won't fix

Notes

(0016211)
Jens Grabowski
16-08-2022 08:40

TTF Discussion: Templates of map types are not allowed, see Rule 6.2.15.1 Map Type Definition, Restriction (a)