Stacey Verner commented that:
 
> TForm3 = class(TForm)
> public
>   constructor Create(POwner: TComponent; PWhoCares: Boolean); reintroduce;
>  end;
         
> The flag reintroduce must create a new heirarchy in the virtual method
table...

Actually no. The only directives that add new entries into the virtual
method table (VMT) are virtual and message.

In this case reintroduce is simply informing the compiler that your
redeclaration of constructor Create is actually intended, and not an
unintended hiding of a virtual method.

If you actually wanted to start a new Create heirarchy you would need to
declare the method as virtual reintroduce.

This is standard Object Pascal behaviour and is documented in the Object
Pascal manual, a manual I find that few people actually study with any great
interest. I started out learning high level languages by reading the UCSD
Pascal Reference Manual before starting University (many moons ago) and I
still get a kick out of looking at language reference works, as these will
tell you all that a language can do, and you learn about the many obscure
areas thaht most never come across.

Cheers, Max.




_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to