Marco van de Voort wrote:
> On Wed, Mar 21, 2007 at 07:15:41AM +0300, Al Boldi wrote:
> > > > > (reserved in the VMT by the virtual directive), it doesn't create
> > > > > room.
> > > > >
> > > > > This is also why you can't override non virtual methods.
> > > >
> > > > Thanks for this very clear and to the point answer.
> > > >
> > > > Would it be possible to implement virtual objects?
> > >
> > > Depends on what you mean by "virtual objects".
> >
> > You know, an object that can be overridden like a virtual method
>
> 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?


Thanks!

--
Al


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

Reply via email to