[fpc-pascal] Migrating MW objects definitions

Peter Vreman peter at freepascal.org
Thu Oct 6 14:56:42 CEST 2005


> I'm trying to migrate MW OO code to FPC. I'm in trouble with this piece of
> MW code:
>
> type
> myObjectA = object
> .....
> lObj: myObjectB;
> ...
> end;
>
> type
> myObjectB = object
> ...
> lObj: myObjectA
> ...
> end;
>
> Essentially when the compiler tries to deal with myObjectA, it says that
> 'myObjectB is not defined'.
>
> Am I doing something wrong, or is it something not supported by FPC?

If it works with MW, but fails with FPC it is not supported. Please log it
as a bug with a short example.






More information about the fpc-pascal mailing list