ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details
0008196Part 01: TTCN-3 Core LanguageTechnicalpublic20-01-2023 13:4226-01-2024 16:33
Matthias Simon 
Jens Grabowski 
normalminorhave not tried
assignedopen 
 
 
Annex D -- Preprocessing macros
Nokia - Matthias Simon
0008196: Redefining Macros as Predefined Constants
A problem with the current TTCN-3 specification its diversity of the language. To address this, I propose that we define macros such as _FILE__, __SCOPE__, and others, as predefined constants. This will make the language model a little smaller.
No tags attached.
Issue History
20-01-2023 13:42Matthias SimonNew Issue
05-09-2023 09:52Jens GrabowskiNote Added: 0016515
05-09-2023 09:54Jens GrabowskiNote Added: 0016516
05-09-2023 09:54Jens GrabowskiAssigned To => Jens Grabowski
05-09-2023 09:54Jens GrabowskiStatusnew => assigned
07-11-2023 14:12Jens GrabowskiNote Added: 0016536
07-11-2023 14:14Jens GrabowskiAssigned ToJens Grabowski => Matthias Simon
08-11-2023 14:06Jens GrabowskiNote Added: 0016557
08-11-2023 14:06Jens GrabowskiAssigned ToMatthias Simon => Jens Grabowski
10-11-2023 11:05Gusztáv AdamisNote Added: 0016580
26-01-2024 16:33Olivier GenoudNote Added: 0016618

Notes
(0016515)
Jens Grabowski   
05-09-2023 09:52   
TTF discussion: Change macros to predefined constants. Preprocessing is not needed/used in the current standard.
(0016516)
Jens Grabowski   
05-09-2023 09:54   
TTF discussion: Description of macro in annex may disappear.
(0016536)
Jens Grabowski   
07-11-2023 14:12   
TTF discussion: Handling of preprocessing macros in the different tools has to be studied, i.e., tool vendors need to be asked.
(0016557)
Jens Grabowski   
08-11-2023 14:06   
TTF discussion: Feature is implemented differently in different tools. Resolution may introduce further ambiguities.
(0016580)
Gusztáv Adamis   
10-11-2023 11:05   
During the discussionswithin TTF it turned out, that the macros cannot be simply renamed to constants, because the macros shall be used before compilation and not during running time.

Ericsson would keep this definition as it is in the current version of the standard, and if during the major revision it turns out that a new term, predefined constant shall be introduced for other reasons, then a new CR shall be raised for that.

Suggest to close this CR.
(0016618)
Olivier Genoud   
26-01-2024 16:33   
It is not clear to us(TF160) how e.g. __LINE__ can be a constant.