ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details
0002136Part 01: TTCN-3 Core LanguageTechnicalpublic12-10-2007 13:0612-03-2008 10:24
Roland Gecse 
Ina Schieferdecker 
normalfeatureN/A
closedfixed 
v3.2.1 (published 2007-02) 
v3.3.2 (published 2008-04)v3.3.2 (published 2008-04) 
C.30
L.M.Ericsson
0002136: Remove sizeoftype predefined function
The sizeoftype predefined function is supposed to be applied to "values of types with length restriction" and return "the sequential number of the last element without respect to whether its value is defined or not".

The return value depends on the length constraints of the type of the parameter. TTCN-3 subtype constraints are static and known at compilation time. The user is aware of these constraints when writing test cases w/o using sizeoftype. sizeoftype has thus no real contribution to TTCN-3.

Besides, sizeoftype behavior is undefined for a parameter type with indefinite upper bound length restriction e.g.

type set length(100..infinity) of integer whatever;

since "infinity" is not a number. This deficiency also contributes to the proposal of eliminating sizeoftype from TTCN-3.
No tags attached.
doc STF_solution_CR2136R1.doc (286,720) 18-10-2007 19:27
http://oldforge.etsi.org/mantis/file_download.php?file_id=1053&type=bug
Issue History
12-10-2007 13:06Roland GecseNew Issue
12-10-2007 13:06Roland GecseClause Reference(s) => C.30
12-10-2007 13:06Roland GecseSource (company - Author) => L.M.Ericsson
13-10-2007 19:04Ina SchieferdeckerStatusnew => assigned
13-10-2007 19:04Ina SchieferdeckerAssigned To => Gyorgy Rethy
15-10-2007 15:31Ina SchieferdeckerNote Added: 0003619
17-10-2007 17:01Gyorgy RethyFile Added: es_20187301v030201p_CR2136.doc
17-10-2007 17:02Gyorgy RethyFile Deleted: es_20187301v030201p_CR2136.doc
17-10-2007 17:02Gyorgy RethyFile Added: STF_solution_CR2136.doc
18-10-2007 12:06Ina SchieferdeckerTarget Version => Edition 3.3.1 (not yet published)
18-10-2007 19:27Gyorgy RethyFile Added: STF_solution_CR2136R1.doc
18-10-2007 19:28Gyorgy RethyFile Deleted: STF_solution_CR2136.doc
19-10-2007 13:17Gyorgy RethyResolutionopen => fixed
06-12-2007 18:28Gyorgy RethyNote Added: 0004406
06-12-2007 18:28Gyorgy RethyAssigned ToGyorgy Rethy => Ina Schieferdecker
06-12-2007 18:28Gyorgy RethyStatusassigned => resolved
07-12-2007 09:24Ina SchieferdeckerStatusresolved => closed
07-12-2007 09:24Ina 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
(0003619)
Ina Schieferdecker   
15-10-2007 15:31   
to be put as depreacted predefined function
(0004406)
Gyorgy Rethy   
06-12-2007 18:28   
Solution is in the file attached to CR424: function is removed.