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

ID | Project | Category | View Status | Date Submitted | Last Update
0005263 | Part 01: TTCN-3 Core Language | Clarification | public | 02-07-2009 16:26 | 07-12-2009 14:45

Reporter | Gyorgy Rethy |
Assigned To | Ina Schieferdecker |
Priority | normal | Severity | minor | Reproducibility | N/A
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version | v4.2.1 (published 2010-07) | Fixed in Version | v4.2.1 (published 2010-07) |
Clause Reference(s) | Annex D, main text
Source (company - Author) | L.M.Ericsson

Summary | 0005263: TTCN-3 macros shall not be replaced in strings and comments

Description

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

Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files | 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 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
Date Modified | Username | Field | Change
02-07-2009 16:26 | Gyorgy Rethy | New Issue |
02-07-2009 16:26 | Gyorgy Rethy | Status | new => assigned
02-07-2009 16:26 | Gyorgy Rethy | Assigned To | => Tibor CsÃ¶ndes
02-07-2009 16:26 | Gyorgy Rethy | Clause Reference(s) | => Annex D, main text
02-07-2009 16:26 | Gyorgy Rethy | Source (company - Author) | => L.M.Ericsson
08-07-2009 10:53 | Tibor CsÃ¶ndes | File Added: CR5263_Macro_inside_string_comment.doc |
08-07-2009 10:54 | Tibor CsÃ¶ndes | Note Added: 0008864 |
08-07-2009 10:56 | Tibor CsÃ¶ndes | Assigned To | Tibor CsÃ¶ndes => Gyorgy Rethy
08-07-2009 14:33 | Gyorgy Rethy | Note Added: 0008870 |
08-07-2009 14:33 | Gyorgy Rethy | File Added: CR5263_resolution_v2.doc |
08-07-2009 14:33 | Gyorgy Rethy | Assigned To | Gyorgy Rethy => Tibor CsÃ¶ndes
08-07-2009 14:35 | Gyorgy Rethy | Resolution | open => fixed
08-07-2009 14:35 | Gyorgy Rethy | Fixed in Version | => Edition 4.2.1 (not yet published)
08-07-2009 15:35 | Tibor CsÃ¶ndes | Assigned To | Tibor CsÃ¶ndes => Ina Schieferdecker
13-07-2009 07:18 | Ina Schieferdecker | Note Added: 0008893 |
13-07-2009 07:19 | Ina Schieferdecker | Status | assigned => resolved
13-07-2009 07:19 | Ina Schieferdecker | Status | resolved => closed
07-12-2009 14:45 | Ina Schieferdecker | Target 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."