ETSI's Bug Tracker - TTCN-3 Change Requests
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0008112 | TTCN-3 Change Requests | New Feature | public | 17-08-2022 07:12 | 23-01-2024 09:57

Reporter | Matthias Simon |
Assigned To | Tomas Urban |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | won't fix |
Platform |  | OS |  | OS Version |
Clause Reference(s) | Core Language Spec
For STF discussion |
Source (company - Author) | Nokia -- Matthias Simon

Summary | 0008112: Combine boolean and bitwise operators.
Description | Currently TTCN-3 distinguishes between boolean operators (and, or, not, ...) and bitwise operators (xor4b, and4b, or4b, not4b, ...) for bit string types. Combining those operators would reduce diversity towards a simpler TTCN-3 grammar. Examples: 0b'1100' xor 0b'1010' // 0b'0110' false xor false // false true xor false // true The original bitwise operators would be deprecated.
Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files |

Issue History
Date Modified | Username | Field | Change
17-08-2022 07:12 | Matthias Simon | New Issue |
17-08-2022 10:04 | Jens Grabowski | Assigned To | => Tomas Urban
17-08-2022 10:04 | Jens Grabowski | Status | new => assigned
17-08-2022 10:07 | Jens Grabowski | Note Added: 0016229 |
09-11-2022 11:33 | Tomas Urban | Note Added: 0016273 |
09-11-2022 12:46 | Jens Grabowski | Note Added: 0016279 |
09-11-2022 12:46 | Jens Grabowski | Note Added: 0016280 |
09-11-2022 12:46 | Jens Grabowski | Status | assigned => closed
09-11-2022 12:46 | Jens Grabowski | Resolution | open => won't fix

Notes

(0016229)
Jens Grabowski
17-08-2022 10:07

TTF discussion: "Merging" of all operators should be checked.

(0016273)
Tomas Urban
09-11-2022 11:33

Input for discussion:
Impossible to achieve as proposed as the change would break operator precedence.
Simplification in java/C++/C# style is possible for logical operators: &&, ||, ! (^^ could be introduced for logical xor) and most of bitwise operators: |, ^, ~
A similar change is problematic for bitwise operators as & is used for concatenation with a similar scope. Could be resolved with a different symbol, such as #, $ or combination of symbols e.g. :&

(0016279)
Jens Grabowski
09-11-2022 12:46

TTF discussion: Operators are in use and a change would not be backwards compatible. Therefore the change cannot be done.

(0016280)
Jens Grabowski
09-11-2022 12:46

Non backwards compatible change.