ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details
0007097Part 01: TTCN-3 Core LanguageClarificationpublic01-07-2015 13:3707-08-2015 13:51
Wolfgang Seka 
Gyorgy Rethy 
highminorhave not tried
closedfixed 
v4.7.1 (published 2015-06) 
v4.8.1 (published 2016-07)v4.8.1 (published 2016-07) 
16.1.2, C.3.1
MCC160 - Wolfgang
0007097: Clarification: ispresent function for elements of a "record of" or "set of"
Currently it is not defined what happens in case of e.g. ispresent(v_RecordOf[i]): Table 14 (clause 16.1.2) refers to "optional field in a record or set value or template" only.
On the other hand according to C.3.1 ispresent shall not cause an error.

=> Either applicability of ispresent shall be enhanced to cope with "record of" and "set of" too or an error shall be defined for this case (compilation or runtime error).

Note: at least with one compiler currently there are side effects resulting in runtime errors which are not directly related to ispresent.
No tags attached.
Issue History
01-07-2015 13:37Wolfgang SekaNew Issue
03-08-2015 11:42Gyorgy RethyNote Added: 0013025
03-08-2015 11:42Gyorgy RethyAssigned To => Jacob Wieland - Spirent
03-08-2015 11:42Gyorgy RethyStatusnew => assigned
04-08-2015 08:30Gyorgy RethyNote Edited: 0013025bug_revision_view_page.php?bugnote_id=13025#r136
04-08-2015 09:12Gyorgy RethyProjectTTCN-3 Change Requests => Part 01: TTCN-3 Core Language
04-08-2015 09:37Gyorgy RethyNote Added: 0013045
04-08-2015 09:42Gyorgy RethyNote Added: 0013047
04-08-2015 09:42Gyorgy RethyStatusassigned => confirmed
04-08-2015 09:44Gyorgy RethyResolutionopen => fixed
04-08-2015 10:54Gyorgy RethyNote Edited: 0013025bug_revision_view_page.php?bugnote_id=13025#r137
04-08-2015 14:48Jacob Wieland - SpirentNote Added: 0013067
04-08-2015 14:48Jacob Wieland - SpirentAssigned ToJacob Wieland - Spirent => Gyorgy Rethy
04-08-2015 14:48Jacob Wieland - SpirentStatusconfirmed => assigned
07-08-2015 13:17Gyorgy RethyNote Added: 0013143
07-08-2015 13:18Gyorgy RethyNote Added: 0013144
07-08-2015 13:18Gyorgy RethyStatusassigned => closed
07-08-2015 13:18Gyorgy RethyProduct Version => v4.7.1 (published 2015-06)
07-08-2015 13:18Gyorgy RethyFixed in Version => v4.8.1 (published 2016-07)
07-08-2015 13:18Gyorgy RethyTarget Version => v4.8.1 (published 2016-07)
07-08-2015 13:51Gyorgy RethyNote Edited: 0013144bug_revision_view_page.php?bugnote_id=13144#r153

Notes
(0013025)
Gyorgy Rethy   
03-08-2015 11:42   
(edited on: 04-08-2015 10:54)
STF discussion 03-08-2015: ispresent is not allowed to record/set of elements, this shall cause a semantic error. Solution to clarify: refer to table 14 in clause C.3.1. To table 14 add other language elements that can match omit (e.g. complete templates).

(0013045)
Gyorgy Rethy   
04-08-2015 09:37   
Proposed resolution is in the draft uploaded to CR 7085 (http://forge.etsi.org/mantis/view.php?id=7085 [^]), es_20187301v040702.docx, please cross-check.

At the end of this working session the draft containing closed CRs will be uploaded to MTS drafts area. Further candidates to be included: CRs 6774 & 6934
(0013047)
Gyorgy Rethy   
04-08-2015 09:42   
Please check draft in CR 7085
(0013067)
Jacob Wieland - Spirent   
04-08-2015 14:48   
the proposed solution is wrong. ispresent should return true for all templates that are not AnyValueOrNone, Ifpresent or Omit, i.e. it should return false for all matching mechanisms that can match omit.

proposal: change entry in table 14 to:

"Determine ... is present or is assigned a matching mechanism that cannot match an ommitted field." (maybe with a note that those are omit, * and ifpresent)
(0013143)
Gyorgy Rethy   
07-08-2015 13:17   
Proposal is OK with minor editorial modifications. See file es_20187301v040702_e.docx in CR 7085.
(0013144)
Gyorgy Rethy   
07-08-2015 13:18   
(edited on: 07-08-2015 13:51)
Implemented in interim draft version V4.7.3 uploaded to TB MTS's drafts area (file es_20187301v040702_e.docx in CR7085).