[fpc-pascal] Bug in enumerators 2.6.4
Torsten Bonde Christiansen
tc at epidata.info
Mon Mar 24 10:34:41 CET 2014
On 2014-03-22 17:33, Marco van de Voort wrote:
> In our previous episode, Torsten Bonde Christiansen said:
>> The problem seem to be that the a descendant enumerator class overriding
>> a virtual method cannot
>> return a class which i only forward declared.
>>
>> If the TFoo and TBar classes are moved above the TBarListEnumerator the
>> code compiles without
>> any problem.
>>
>> Should I add this to the bugtracker?
> Yes. The code with Tfoo and TBar above also shouldn't not compile, at least
> not in Delphi mode.
Should I report this as a bug where this construct is not allow at all
(not just Delphi mode, bot all mode) or as a bug in regards to Delphi mode.
Actually i would like to see this work, at least for objfpc, also with
the construct where forward declared classes is possible.
Regards,
Torsten.
More information about the fpc-pascal
mailing list