TPath record has class constructor TPath.Create which initialize class vars. But, I can’t find any unit where TPath.Create is used / called dispite this all vars has correct values (TPath.PathSeparator, …).
TPath record has class constructor TPath.Create which initialize class vars. But, I can’t find
Share
Class constructors are called automatically by the initialization code that Delphi produces. Class constructors are called during the initialization section of the unit in which they are declared.
This is described in more detail in the documentation:
You can see that this is so by enabling Debug DCUs and then setting a breakpoint on the code in the class constructor.