ETSI's Bug Tracker - Part 04: TTCN-3 Operational Semantics
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0004288 | Part 04: TTCN-3 Operational Semantics | Editorial | public | 14-10-2008 17:49 | 16-10-2008 11:11

Reporter | Thomas DeiÃŸ |
Assigned To | Ina Schieferdecker |
Priority | low | Severity | minor | Reproducibility | N/A
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version | v3.3.1 (published 2008-04) |
Target Version | v4.1.1 (published 2009-06) | Fixed in Version | v4.1.1 (published 2009-06) |
Clause Reference(s) | A.1.4
Source (company - Author) | Nokia Siemens Networks, Thomas DeiÃŸ

Summary | 0004288: Embedding of line comments

Description

Clause A.1.4 states 'Line comments may follow TTCN 3 program statements but they shall not be embedded in a statement.' This is not correct.
const // some comment integer c := 1;
boolean b true;
is correct, also the line comment is clearly embedded in the declaration.
Proposal: 'Line comments may follow TTCN-3 program statements, but they cannot be embedded in a statement on the same line.'

Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files |

Issue History
Date Modified | Username | Field | Change
14-10-2008 17:49 | Thomas DeiÃŸ | New Issue |
14-10-2008 17:49 | Thomas DeiÃŸ | Status | new => assigned
14-10-2008 17:49 | Thomas DeiÃŸ | Assigned To | => Ina Schieferdecker
14-10-2008 17:49 | Thomas DeiÃŸ | Clause Reference(s) | => A.1.4
14-10-2008 17:49 | Thomas DeiÃŸ | Source (company - Author) | => Nokia Siemens Networks, Thomas DeiÃŸ
14-10-2008 18:12 | Ina Schieferdecker | Target Version | => Edition 4.1.1 (not yet published)
14-10-2008 18:23 | Ina Schieferdecker | Note Added: 0007065 |
14-10-2008 18:28 | Ina Schieferdecker | Assigned To | Ina Schieferdecker => Thomas DeiÃŸ
14-10-2008 18:28 | Ina Schieferdecker | Resolution | open => fixed
15-10-2008 09:25 | Thomas DeiÃŸ | Note Added: 0007066 |
15-10-2008 09:25 | Thomas DeiÃŸ | Assigned To | Thomas DeiÃŸ => Ina Schieferdecker
16-10-2008 11:10 | Ina Schieferdecker | Note Added: 0007092 |
16-10-2008 11:10 | Ina Schieferdecker | Status | assigned => resolved
16-10-2008 11:11 | Ina Schieferdecker | Status | resolved => closed
16-10-2008 11:11 | Ina Schieferdecker | Fixed in Version | => Edition 4.1.1 (not yet published)

Notes

(0007065)
Ina Schieferdecker
14-10-2008 18:23

It is better to remove the sentence as it is still misleading, e.g. it is not only statements - but any kind of definition. Anyway, there is no real need to explain grazy cases of line comments?!
Still, the example could point at the issue:
EXAMPLE 3:
// The following is not legal
const // This is MyConst integer MyConst := 1;
// A block comment should have been used instead
const /* This is MyConst */ integer MyConst := 1;

(0007066)
Thomas DeiÃŸ
15-10-2008 09:25

Example is ok. Leaving out the sentence is also ok.

(0007092)
Ina Schieferdecker
16-10-2008 11:10

Added one more example: // A line comment like this works as well const // This is MyConst integer MyConst := 1;