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

ID | Project | Category | View Status | Date Submitted | Last Update
0001467 | Part 01: TTCN-3 Core Language | Technical | public | 31-05-2007 23:22 | 12-03-2008 10:28

Reporter | Gyorgy Rethy |
Assigned To | Ina Schieferdecker |
Priority | normal | Severity | minor | Reproducibility | always
Status | closed | Resolution | duplicate |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version | v3.3.2 (published 2008-04) | Fixed in Version | v3.3.2 (published 2008-04) |
Clause Reference(s) | C.29 & C.30
Source (company - Author) | L.M.Ericsson

Summary | 0001467: Clarifying template parameters for sizeof and sizeoftype
Description | Textual descriptions in clause C.29 & C.30 allow using the functions to templates but neither the function proforma allows template input parameters nor handling of matching mechanisms described.
Steps To Reproduce |

Additional Information

C.29 Number of elements in a structured value
sizeof(template any_type Value) return integer
This function returns the actual number of elements of a module parameter, constant, variable or template of a record, record of, set, set of type or array (see note). The function is applicable to templates only if applying the sizeof predefined function to all values matching the template give the same result. In the case of record of and set of values, templates or arrays, the actual value to be returned is the sequential number of the last defined element (index of that element plus 1). In case of record and set values the number of mandatory fields plus the optional fields that are present in the actual value is returned. Dynamic test case error occurs if the template
can match values with different sizes or the length restriction contradicts the number of elements in the template body.
...
template MyPDU MyTemplate1
{ field1 ?,
field2 5
};
var integer numElements;
// then
numElements := sizeof(MyTemplate); // returns 1
numElements := sizeof(MyTemplate1); // returns 2
<solution to C.30 is along the same line>

Tags | No tags attached.
Relationships |
Attached Files |

Issue History
Date Modified | Username | Field | Change
31-05-2007 23:22 | Gyorgy Rethy | New Issue |
31-05-2007 23:22 | Gyorgy Rethy | Clause Reference(s) | => C.29 & C.30
31-05-2007 23:22 | Gyorgy Rethy | Source (company - Author) | => L.M.Ericsson
15-06-2007 19:08 | Stephan Schulz | Status | new => assigned
15-06-2007 19:08 | Stephan Schulz | Assigned To | => Ina Schieferdecker
15-10-2007 16:37 | Ina Schieferdecker | Status | assigned => closed
15-10-2007 16:37 | Ina Schieferdecker | Note Added: 0003622 |
15-10-2007 16:37 | Ina Schieferdecker | Resolution | open => fixed
18-10-2007 12:27 | Ina Schieferdecker | Status | closed => feedback
18-10-2007 12:27 | Ina Schieferdecker | Resolution | fixed => reopened
18-10-2007 12:27 | Ina Schieferdecker | Status | feedback => closed
18-10-2007 12:27 | Ina Schieferdecker | Resolution | reopened => duplicate
18-10-2007 12:27 | Ina Schieferdecker | Target Version | => Edition 3.3.1 (not yet published)
12-03-2008 10:28 | user10 | Fixed in Version | => Edition 3.3.2 (not yet published)
12-03-2008 10:28 | user10 | Target Version | Edition 3.3.1 --will not be published, see 3.3.2 => Edition 3.3.2 (not yet published)

Notes

(0003622)
Ina Schieferdecker
15-10-2007 16:37

It is a duplicate of CR 1451