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

ID | Project | Category | View Status | Date Submitted | Last Update
0008196 | Part 01: TTCN-3 Core Language | Technical | public | 20-01-2023 13:42 | 16-12-2024 11:28

Reporter | Matthias Simon |
Assigned To | Jens Grabowski |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | resolved | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version |  | Fixed in Version |  |
Clause Reference(s) | Annex D -- Preprocessing macros
Source (company - Author) | Nokia - Matthias Simon

Summary | 0008196: Redefining Macros as Predefined Constants
Description | 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.
Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files |

Issue History
Date Modified | Username | Field | Change
20-01-2023 13:42 | Matthias Simon | New Issue |
05-09-2023 09:52 | Jens Grabowski | Note Added: 0016515 |
05-09-2023 09:54 | Jens Grabowski | Note Added: 0016516 |
05-09-2023 09:54 | Jens Grabowski | Assigned To | => Jens Grabowski
05-09-2023 09:54 | Jens Grabowski | Status | new => assigned
07-11-2023 14:12 | Jens Grabowski | Note Added: 0016536 |
07-11-2023 14:14 | Jens Grabowski | Assigned To | Jens Grabowski => Matthias Simon
08-11-2023 14:06 | Jens Grabowski | Note Added: 0016557 |
08-11-2023 14:06 | Jens Grabowski | Assigned To | Matthias Simon => Jens Grabowski
10-11-2023 11:05 | Gusztáv Adamis | Note Added: 0016580 |
26-01-2024 16:33 | Olivier Genoud | Note Added: 0016618 |
19-11-2024 13:38 | Jens Grabowski | Note Added: 0016693 |
16-12-2024 11:28 | Jens Grabowski | Note Added: 0016720 |
16-12-2024 11:28 | Jens Grabowski | Status | assigned => resolved
16-12-2024 11:28 | Jens Grabowski | Resolution | open => fixed

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.

(0016693)
Jens Grabowski
19-11-2024 13:38

To be discussed in the scope of TTF T40.

(0016720)
Jens Grabowski
16-12-2024 11:28

Discussion continued in Gitlab.