Graeme Geldenhuys wrote:
On 03/08/07, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote:
On 03/08/07, Christian Budde <[EMAIL PROTECTED]> wrote:
 constructor TCustomForm.CreateNew(AOwner: TComponent; Num : Integer);

 can anyone here explain me why it is there and what it stands for? Right
now I don't see a reason for that, but maybe there's a platform independent
thing I don't see right now (I'm on Win32 at the moment).
Good question!  I asked the same think many years back and could never
get a clear answer. The documentation is also no help.

This could be interpreted wrong. I meant I asked this years ago when I
used Delphi, and the Delphi developers could give me a answer either.
Seem Borland had some idea for it, but never found time to implement
it and it got stuck there ever since.

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.

ps. I believe I've learned this from the documentation.

Regards,
Sergei

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to