[lazarus] compile error on New Sources from cvs - FIXED

Marc Weustink marc at dommelstein.net
Thu Nov 27 17:30:04 EST 2003


At 23:24 27-11-2003, Mattias Gaertner wrote:
>On Thu, 27 Nov 2003 23:10:24 +0100  Marc Weustink <marc at dommelstein.net>
>wrote:

[snip]

> > I don't think this is the way to go. Now, if the interface gets extended
> > with mode direct calls, we can add a TBase... for every
> > TComponent/TControl etc we need.
> >
> > OK, what happened.
> >
> > The LCL needs the baseinterface..
> > The baseinterface needs the LCL..
> >
> > That means problems. Sure you can introduce all kinds of base classes, but
> >
> > how would you do this with a TBaseControl and a TBaseWinControl ?
> > If we are going to introduce dedicated interface classes, it starts to
> > look like a discussion we had a few years ago.
> >
> > Seen the latest problems and implications, I wonder if we should continue
> > the last changes we made. IMO, we should undo it and try another route.
>
>What about replacing TBaseMenuItem with TComponent?

Hmm...

That would require a lot of typecasting, but is better.
The new situation would be

The LCL needs the baseInterface and FCL
The baseInterface needs FCL
The XXXInterface needs LCL and baseInterface and FCL

I don't see a problem here.

Marc





>Mattias
>
>_________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives






More information about the Lazarus mailing list