Re: C++ base constructor call vs. D's

2019-10-02 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, October 2, 2019 11:22:40 AM MDT Just Dave via Digitalmars-d- learn wrote: > I was reading the C++ to D page, and came across this little bit > about when to call the base class constructor: > > "It's superior to C++ in that the base constructor call can be > flexibly placed anywhere

Re: C++ base constructor call vs. D's

2019-10-02 Thread kinke via Digitalmars-d-learn
On Wednesday, 2 October 2019 at 17:22:40 UTC, Just Dave wrote: I was reading the C++ to D page, and came across this little bit about when to call the base class constructor: Isn't there some inherent danger of not calling the base constructor first? The object's fields are pre-initialized

C++ base constructor call vs. D's

2019-10-02 Thread Just Dave via Digitalmars-d-learn
I was reading the C++ to D page, and came across this little bit about when to call the base class constructor: "It's superior to C++ in that the base constructor call can be flexibly placed anywhere in the derived constructor." Isn't there some inherent danger of not calling the base