Problems with constructors

Top  Previous  Next

What is translated > Types > Records, Classes, Interfaces > Class > Constructors > Problems with constructors

 

Summarizing, there remain two problems for which the translated constructors have to be checked:

 

1.the order of construction of the derived and the base classes is differently in Delphi and C++
2.member variables should be initialized in at the beginning of the constructor code in the initialization list. But sometimes the value can depend on other calculations and  Delphi2Cppcannot recognize this.
3.in Delphi there can be several constructors with the same signature but with different names
4.the call of virtual functions inside of constructors
5.Delphi has the concept of virtual constructors

 

 

 

 

[****]

 

 



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content