ETSI's Bug Tracker - Ext Pack: Object-oriented features (ES 203 790)
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0007830 | Ext Pack: Object-oriented features (ES 203 790) | [All Projects] General | public | 30-03-2019 16:01 | 09-01-2020 16:02

Reporter | KristÃ³f Szabados |
Assigned To | Jens Grabowski |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version |  | Fixed in Version |  |

Summary | 0007830: Clarification request for OO features (order or member initializer and constructor)

Description

From the text it is not clear in what order the direct initializations of class members and the constructor of the class is executed and if multiple initialization is allowed.
Is it possible to initialize a member variable via its direct initializing value first and override it in the constructor?
(this I guess should be possible although not very efficient)
What if a constant member has direct initializer and would also get a value in the constructor? (this I believe should be a compile time error if can be detected)

Steps To Reproduce |
Additional Information |
Tags | No tags attached.

Relationships

related to | 0007868 | closed | Jens Grabowski | External classes should be allowed internal members (direct and inherited)

Attached Files | CR7830.docx (130,991) 07-08-2019 08:16 http://oldforge.etsi.org/mantis/file_download.php?file_id=3826&type=bug CR7830_v2.docx (131,620) 07-08-2019 13:21 http://oldforge.etsi.org/mantis/file_download.php?file_id=3832&type=bug

Issue History
Date Modified | Username | Field | Change
30-03-2019 16:01 | KristÃ³f Szabados | New Issue |
06-08-2019 10:12 | KristÃ³f Szabados | Note Added: 0015372 |
06-08-2019 10:12 | KristÃ³f Szabados | Assigned To | => Jacob Wieland - Spirent
06-08-2019 10:12 | KristÃ³f Szabados | Status | new => assigned
06-08-2019 15:59 | Jacob Wieland - Spirent | File Added: CR7830.docx |
06-08-2019 15:59 | Jacob Wieland - Spirent | Note Added: 0015378 |
06-08-2019 15:59 | Jacob Wieland - Spirent | Assigned To | Jacob Wieland - Spirent => Tomas Urban
06-08-2019 15:59 | Jacob Wieland - Spirent | Status | assigned => confirmed
07-08-2019 07:33 | Jacob Wieland - Spirent | File Deleted: CR7830.docx |
07-08-2019 07:33 | Jacob Wieland - Spirent | Assigned To | Tomas Urban => Jacob Wieland - Spirent
07-08-2019 07:33 | Jacob Wieland - Spirent | Status | confirmed => assigned
07-08-2019 08:16 | Jacob Wieland - Spirent | File Added: CR7830.docx |
07-08-2019 08:16 | Jacob Wieland - Spirent | Assigned To | Jacob Wieland - Spirent => Tomas Urban
07-08-2019 08:16 | Jacob Wieland - Spirent | Status | assigned => confirmed
07-08-2019 13:21 | KristÃ³f Szabados | File Added: CR7830_v2.docx |
07-08-2019 13:22 | KristÃ³f Szabados | Note Added: 0015403 |
07-08-2019 14:30 | Tomas Urban | Note Added: 0015414 |
07-08-2019 14:30 | Tomas Urban | Status | confirmed => resolved
07-08-2019 14:30 | Tomas Urban | Resolution | open => fixed
08-08-2019 10:59 | Jens Grabowski | Assigned To | Tomas Urban => Jens Grabowski
08-08-2019 10:59 | Jens Grabowski | Status | resolved => assigned
08-08-2019 10:59 | Jens Grabowski | Status | assigned => resolved
18-12-2019 09:27 | Tomas Urban | Relationship added | related to 0007868
18-12-2019 09:29 | Jens Grabowski | Note Added: 0015571 |
18-12-2019 09:29 | Jens Grabowski | Assigned To | Jens Grabowski => Tomas Urban
18-12-2019 09:29 | Jens Grabowski | Status | resolved => assigned
18-12-2019 10:24 | Tomas Urban | Note Added: 0015575 |
18-12-2019 10:24 | Tomas Urban | Assigned To | Tomas Urban => Jacob Wieland - Spirent
18-12-2019 10:24 | Tomas Urban | Status | assigned => confirmed
18-12-2019 11:05 | Jacob Wieland - Spirent | Status | confirmed => resolved
18-12-2019 11:05 | Jacob Wieland - Spirent | Status | resolved => feedback
18-12-2019 11:05 | Jacob Wieland - Spirent | Resolution | fixed => reopened
18-12-2019 11:05 | Jacob Wieland - Spirent | Status | feedback => resolved
18-12-2019 11:05 | Jacob Wieland - Spirent | Resolution | reopened => fixed
18-12-2019 11:05 | Jacob Wieland - Spirent | Assigned To | Jacob Wieland - Spirent => Jens Grabowski
09-01-2020 16:02 | Jens Grabowski | Status | resolved => closed

Notes

(0015372)
KristÃ³f Szabados
06-08-2019 10:12

STF discussion: first all the right hand side of the member declarations, second the initializer, third the constructor. Constants should be assigned only once. And that in class hierarchy, from the topmost super class to the lowest nd than call the constructor of the lowest class.

(0015378)
Jacob Wieland - Spirent
06-08-2019 15:59

please review

(0015403)
KristÃ³f Szabados
07-08-2019 13:22

fixed a minor typo and emphasized a bit more that cyclic initialization is not allowed.

(0015414)
Tomas Urban
07-08-2019 14:30

No errors found in the proposal, it can be added to the specification.

(0015571)
Jens Grabowski
18-12-2019 09:29

conflicts with 7856, 7868

(0015575)
Tomas Urban
18-12-2019 10:24

Merged with changes from 0007868 and 0007856. The merged document is in 0007868. Please mark this CR as resolved if the review of the document yield a positive result.