ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details
0002137Part 01: TTCN-3 Core LanguageEditorialpublic12-10-2007 13:5212-03-2008 10:24
Roland Gecse 
Ina Schieferdecker 
normalminorN/A
closedfixed 
v3.2.1 (published 2007-02) 
v3.3.2 (published 2008-04)v3.3.2 (published 2008-04) 
C.29
L.M.Ericsson
0002137: Faulty examples in sizeof documentation
Several syntactical/semantical faults appear in the examples given at the specification of sizeof predefined function.

1) The template definition of MyTemplate is syntactically invalid and should be replaced.

Faulty definition:

template MyPDU MyTemplate { field1 omit, field2 5 };

Corrected definition:

template MyPDU MyTemplate := { field1 := omit, field2 := 5 };

2.a) Editorial: Using the identifier MyRecordVar for a record of type variable is more than misleading:

var MyList MyRecordVar;

I would recommend to change it to e.g. MyRecordOfVar of MyListVar in all places.

2.b) Semantical: The use of omit is not appropriate in MyRecordVar initializer as MyRecordVar resolves to a record of integer type, which must not contain optional elements, thus statement "The omit keyword shall not be used for mandatory fields." in section 6.2 invalidates the code:

MyRecordVar := { 0, 1, omit, 2, omit };

The intended content would probably be:

MyRecordVar := { 0, 1, -, 2, - };
I remember seeing omit values appearing in other places in the Core Language specification, thus it might be worth reviewing all the examples.
No tags attached.
Issue History
12-10-2007 13:52Roland GecseNew Issue
12-10-2007 13:52Roland GecseClause Reference(s) => C.29
12-10-2007 13:52Roland GecseSource (company - Author) => L.M.Ericsson
13-10-2007 19:03Ina SchieferdeckerStatusnew => assigned
13-10-2007 19:03Ina SchieferdeckerAssigned To => Gyorgy Rethy
17-10-2007 18:39Gyorgy RethyFile Added: STF_solution_CR2137.doc
17-10-2007 18:41Gyorgy RethyFile Deleted: STF_solution_CR2137.doc
17-10-2007 18:44Gyorgy RethyFile Added: STF_solution_CR2137.doc
18-10-2007 12:05Ina SchieferdeckerTarget Version => Edition 3.3.1 (not yet published)
18-10-2007 16:47Gyorgy RethyFile Deleted: STF_solution_CR2137.doc
18-10-2007 19:30Gyorgy RethyNote Added: 0003697
19-10-2007 13:18Gyorgy RethyResolutionopen => fixed
19-10-2007 13:18Gyorgy RethyNote Added: 0003704
06-12-2007 16:38Gyorgy RethyNote Added: 0004393
06-12-2007 16:38Gyorgy RethyAssigned ToGyorgy Rethy => Ina Schieferdecker
06-12-2007 16:38Gyorgy RethyStatusassigned => resolved
06-12-2007 18:02Ina SchieferdeckerStatusresolved => closed
06-12-2007 18:02Ina SchieferdeckerFixed in Version => Edition 3.3.1 (not yet published)
12-03-2008 10:22user10Fixed in VersionEdition 3.3.1 --will not be published, see 3.3.2 => Edition 3.3.2 (not yet published)
12-03-2008 10:24user10Target VersionEdition 3.3.1 --will not be published, see 3.3.2 => Edition 3.3.2 (not yet published)

Notes
(0003697)
Gyorgy Rethy   
18-10-2007 19:30   
STF solution of the CR is merged with the solutions of CRs 383, 424, 1451, 2141 and 2142
(0003704)
Gyorgy Rethy   
19-10-2007 13:18   
STF solution text is in the common file attached to CR383
(0004393)
Gyorgy Rethy   
06-12-2007 16:38   
Resolved together with CR424, solution is in the file attached to CR424.