[fpc-pascal] Bug in enumerators 2.6.4

Marco van de Voort marcov at stack.nl
Sat Mar 22 18:20:31 CET 2014


In our previous episode, Bart said:
> > Yes. The code with Tfoo and TBar above also shouldn't not compile, at least
> > not in Delphi mode.
> 
> The double negative is intended here?

No. So Delphi refuses when TFoo and TBar are declared at the top. IMHO
rightfully so.

Both Delphi and FPC also refuse the alternate forward declaration with
inhertiance ( TBar=Class(TFoo); ), that would at least declare
before use of the relation.  I don't know what the motivation is for
refusing that.



More information about the fpc-pascal mailing list