Sergei Gorelkin schrieb:
That second parameter is for C++ Builder compatibility. In C++,
overloaded constructors cannot differ by name, they can differ only by
parameter list. Therefore, a dummy parameter was introduced, otherwise
it would be impossible to call TCustomForm.CreateNew from C++ code.
So, it's completely useless. I checked it with my latest Delphi version
(Turbo Delphi) and it's at least removed there. Now I wonder whether it
is still useful for Delphi compatibility.
There was once this overload:
constructor TCustomForm.CreateNew(AOwner: TComponent; Num : Integer = 0);
Why not reintroduce it. Right now I have an ugly IFDEF in my code which
I'd like to remove. As far as I can see, there isn't a Lazarus C++
Builder, so why should this be a problem then?
Just a suggestion,
Christian