ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details
0005263Part 01: TTCN-3 Core LanguageClarificationpublic02-07-2009 16:2607-12-2009 14:45
Gyorgy Rethy 
Ina Schieferdecker 
normalminorN/A
closedfixed 
 
v4.2.1 (published 2010-07)v4.2.1 (published 2010-07) 
Annex D, main text
L.M.Ericsson
0005263: TTCN-3 macros shall not be replaced in strings and comments
Currently it is not specifies what "replaced by a ... before compilation" means. Are macros replaced within character string values and/or comments?

- as macros (except __LINE__) are replaced by a charstring value, replacing them inside character strings would lead to non-eliminable syntactical errors (or at least unwanted quotation marks in the string). E.g. the raw TTCN-3 code:
var charstring vchar := "My __MODULE__ is:";// raw TCN-3 code
would become after preprocessing:
var charstring vchar := "My "MyModule" is:";//invalid TTCN-3 code

- comments are normally raw text that is skipped during all pre(processing) of the code (except when processed specifically for documentation purposes); hence macros shall not be replaced in comments either
No tags attached.
doc CR5263_Macro_inside_string_comment.doc (131,584) 08-07-2009 10:53
http://oldforge.etsi.org/mantis/file_download.php?file_id=2184&type=bug
doc CR5263_resolution_v2.doc (131,584) 08-07-2009 14:33
http://oldforge.etsi.org/mantis/file_download.php?file_id=2190&type=bug
Issue History
02-07-2009 16:26Gyorgy RethyNew Issue
02-07-2009 16:26Gyorgy RethyStatusnew => assigned
02-07-2009 16:26Gyorgy RethyAssigned To => Tibor Csöndes
02-07-2009 16:26Gyorgy RethyClause Reference(s) => Annex D, main text
02-07-2009 16:26Gyorgy RethySource (company - Author) => L.M.Ericsson
08-07-2009 10:53Tibor CsöndesFile Added: CR5263_Macro_inside_string_comment.doc
08-07-2009 10:54Tibor CsöndesNote Added: 0008864
08-07-2009 10:56Tibor CsöndesAssigned ToTibor Csöndes => Gyorgy Rethy
08-07-2009 14:33Gyorgy RethyNote Added: 0008870
08-07-2009 14:33Gyorgy RethyFile Added: CR5263_resolution_v2.doc
08-07-2009 14:33Gyorgy RethyAssigned ToGyorgy Rethy => Tibor Csöndes
08-07-2009 14:35Gyorgy RethyResolutionopen => fixed
08-07-2009 14:35Gyorgy RethyFixed in Version => Edition 4.2.1 (not yet published)
08-07-2009 15:35Tibor CsöndesAssigned ToTibor Csöndes => Ina Schieferdecker
13-07-2009 07:18Ina SchieferdeckerNote Added: 0008893
13-07-2009 07:19Ina SchieferdeckerStatusassigned => resolved
13-07-2009 07:19Ina SchieferdeckerStatusresolved => closed
07-12-2009 14:45Ina SchieferdeckerTarget Version => Edition 4.2.1 (not yet published)

Notes
(0008864)
Tibor Csöndes   
08-07-2009 10:54   
Suggestion uploaded.
(0008870)
Gyorgy Rethy   
08-07-2009 14:33   
CR5263_resolution_v2.doc:
editorials only, otherwise solution is OK with me.
(0008893)
Ina Schieferdecker   
13-07-2009 07:18   
Implemented as "Preprocessing macros shall not be replaced inside literal charstring values and templates and not in TTCN-3 comments."