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

ID | Project | Category | View Status | Date Submitted | Last Update
0007990 | Part 01: TTCN-3 Core Language | New Feature | public | 29-10-2020 07:30 | 17-12-2020 10:24

Reporter | Tomas Urban |
Assigned To | Gyorgy Rethy |
Priority | normal | Severity | trivial | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version | 4.12.1 (published 2020-05) |
Target Version | 4.13.1 (ongoing) | Fixed in Version | 4.13.1 (ongoing) |
Clause Reference(s) | C.2.1
Source (company - Author) | TTF T003

Summary | 0007990: lengthof for maps
Description | The predefined function lengthof should accept parameters of map types and return the number of key/value pairs in the map.
Steps To Reproduce |
Additional Information |
Tags | No tags attached.

Relationships

parent of | 0007998 | closed | Jens Grabowski | lengthof for maps

Attached Files | CR7990-1.docx (186,079) 07-12-2020 13:41 http://oldforge.etsi.org/mantis/file_download.php?file_id=3968&type=bug

Issue History
Date Modified | Username | Field | Change
29-10-2020 07:30 | Tomas Urban | New Issue |
07-12-2020 12:02 | Jens Grabowski | Assigned To | => Tomas Urban
07-12-2020 12:02 | Jens Grabowski | Status | new => assigned
07-12-2020 13:41 | Tomas Urban | File Added: CR7990-1.docx |
07-12-2020 13:42 | Tomas Urban | Note Added: 0015799 |
07-12-2020 13:42 | Tomas Urban | Assigned To | Tomas Urban => KristÃ³f Szabados
07-12-2020 13:42 | Tomas Urban | Status | assigned => confirmed
07-12-2020 17:04 | KristÃ³f Szabados | Note Added: 0015803 |
09-12-2020 09:23 | Jens Grabowski | Assigned To | KristÃ³f Szabados => Tomas Urban
09-12-2020 09:23 | Jens Grabowski | Status | confirmed => assigned
09-12-2020 09:30 | Jens Grabowski | Assigned To | Tomas Urban => Gyorgy Rethy
09-12-2020 09:30 | Jens Grabowski | Status | assigned => resolved
09-12-2020 09:30 | Jens Grabowski | Resolution | open => fixed
17-12-2020 10:17 | Gyorgy Rethy | Note Added: 0015875 |
17-12-2020 10:17 | Gyorgy Rethy | Status | resolved => closed
17-12-2020 10:17 | Gyorgy Rethy | Product Version | => 4.12.1 (published 2020-05)
17-12-2020 10:17 | Gyorgy Rethy | Fixed in Version | => 4.13.1 (ongoing)
17-12-2020 10:17 | Gyorgy Rethy | Target Version | => 4.13.1 (ongoing)
17-12-2020 10:24 | Gyorgy Rethy | Issue cloned: 0007998 |
17-12-2020 10:24 | Gyorgy Rethy | Relationship added | parent of 0007998

Notes

(0015799)
Tomas Urban
07-12-2020 13:42

Resolution uploaded. Please check.

(0015803)
KristÃ³f Szabados
07-12-2020 17:04

In theory this looks fine for a general case.
I just have noticed some interesting properties of the current map description, where it might not work:
1)
There is no rule saying that the keys or the values need to be unique.
That is if the numerical value 1 is stored in 2 variables and both are used as keys ... this definition my return the value 2, but when asking for the keys of the map, as it returns a set of structure it might have only a single element.
2)
There is no example for what happens, when a key is mapped to the not used symbol.
If this is to be handled as a special case, and could be assigned to 2 different keys ... than the above definition would not be usable with the to selector, that also returns a set of values.

(0015875)
Gyorgy Rethy
17-12-2020 10:17

Implemented in draft 4.12.2