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

ID | Project | Category | View Status | Date Submitted | Last Update
0008114 | Part 01: TTCN-3 Core Language | Technical | public | 17-08-2022 09:10 | 04-01-2023 08:53

Reporter | Tomas Urban |
Assigned To | Jens Grabowski |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version |  | Fixed in Version |  |
Clause Reference(s) | 6.2.15, 15
Source (company - Author) | TTFT023

Summary | 0008114: Template support for the map type
Description | Add all necessary features allowing to create and use templates of the map type.
Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files | CR-8114.docx (263,875) 08-12-2022 09:47 http://oldforge.etsi.org/mantis/file_download.php?file_id=4090&type=bug

Issue History
Date Modified | Username | Field | Change
17-08-2022 09:10 | Tomas Urban | New Issue |
17-08-2022 09:21 | Jens Grabowski | Project | TTCN-3 Change Requests => Part 01: TTCN-3 Core Language
17-08-2022 09:24 | Jens Grabowski | Note Added: 0016227 |
17-08-2022 09:24 | Jens Grabowski | Assigned To | => Tomas Urban
17-08-2022 09:24 | Jens Grabowski | Status | new => assigned
06-12-2022 12:53 | Tomas Urban | Note Added: 0016359 |
08-12-2022 09:47 | Tomas Urban | File Added: CR-8114.docx |
08-12-2022 09:47 | Tomas Urban | Note Added: 0016372 |
08-12-2022 09:47 | Tomas Urban | Assigned To | Tomas Urban => Jens Grabowski
08-12-2022 09:47 | Tomas Urban | Status | assigned => confirmed
16-12-2022 09:19 | Jens Grabowski | Note Added: 0016424 |
16-12-2022 09:19 | Jens Grabowski | Status | confirmed => resolved
16-12-2022 09:19 | Jens Grabowski | Resolution | open => fixed
04-01-2023 08:53 | Jens Grabowski | Note Added: 0016450 |
04-01-2023 08:53 | Jens Grabowski | Status | resolved => closed

Notes

(0016227)
Jens Grabowski
17-08-2022 09:24

TTF discussion: Support may be beneficially (e.g., in the context of JSON). Not highest priority. Tomas will study the subject.

(0016359)
Tomas Urban
06-12-2022 12:53

Matching symbols for the whole map can be easily supported (?, *, omit). The biggest issue is on the element level where the standard should provide support for two different situations:
1. A template that matches only the specified elements (and no other elements can be present).
2. A template that matches the specified elements and all unspecified elements are ignored.
Possible syntax proposal for 0000002 (but there might be better ideas):
type map from charstring to integer MyMapType;
template MyMapType mw_map1 := { ["black"] := 23, ["white"] := ?, * } // asterisk as the last symbol
I my opinion, the elements inside matching templates of the map should behave as optional items in records, so that the user can use ?, *, omit and ifpresent for them.

(0016372)
Tomas Urban
08-12-2022 09:47

Resolution uploaded. Please check.

(0016424)
Jens Grabowski
16-12-2022 09:19

ok from my side

(0016450)
Jens Grabowski
04-01-2023 08:53

Implemented as proposed.