On Wed, Mar 21, 2007 at 02:26:06PM +0300, Al Boldi wrote:
> > But what is exactly overriden in the object? In the case of a method it is
> > clear. The code of that specific method is overridable.
>
> Override the whole object; consider this:
>
> TObject1 = class;
>
> This inherits the ancestor and changes the name, whereas something like:
>
> TObject = class ; override;
>
> Would inherit/override the ancestor while keeping the name.
> Is this possible to implement?
In general: No. All descendants would still be the old interface. This
because that is the objecttype that is seen when the descendant is defined.
(e.g. on RTL compilation).
There is a Delphi feature called "Class helper" (which is one of the
C# backports, and not the nicest one), but this doesn't solve this problem,
since it doesn't help with already compiled code. (it only saves the
substitution)
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives