Re: [fpc-pascal] Bug in enumerators 2.6.4

2014-03-24 Thread Torsten Bonde Christiansen
On 2014-03-24 10:57, Marco van de Voort wrote: In our previous episode, Torsten Bonde Christiansen said: Yes. A case where a check is missing doesn't automatically mean a feature has been implemented where that check is not needed. Overriding methods with declarations that don't match the origi

Re: [fpc-pascal] Bug in enumerators 2.6.4

2014-03-24 Thread Marco van de Voort
In our previous episode, Torsten Bonde Christiansen said: > >> the construct where forward declared classes is possible. > > That's a separate language enhancement request, read > > http://www.freepascal.org/faq.var#extensionselect > Since this is already possible in objfpc mode (at least partially

Re: [fpc-pascal] Bug in enumerators 2.6.4

2014-03-24 Thread Torsten Bonde Christiansen
On 2014-03-24 10:38, Marco van de Voort wrote: In our previous episode, Torsten Bonde Christiansen said: 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 no

Re: [fpc-pascal] Bug in enumerators 2.6.4

2014-03-24 Thread Marco van de Voort
In our previous episode, Torsten Bonde Christiansen said: > >> 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 mo

Re: [fpc-pascal] Bug in enumerators 2.6.4

2014-03-24 Thread Torsten Bonde Christiansen
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 th

Re: [fpc-pascal] Bug in enumerators 2.6.4

2014-03-24 Thread Torsten Bonde Christiansen
On 2014-03-22 22:34, hinsta...@yandex.ru wrote: What you do this for? Using override directive makes no sense in this case, so I suggest you just don't use it. If you don't use it, the descendant enumerator will still work like intended I Think override makes perfect sense in this case. I get

Re: [fpc-pascal] Bug in enumerators 2.6.4

2014-03-22 Thread hinstance
What you do this for? Using override directive makes no sense in this case, so I suggest you just don't use it. If you don't use it, the descendant enumerator will still work like intended 22.03.2014, 20:21, "Torsten Bonde Christiansen" : > Hi List. > > I think i have found a bug related to enum

Re: [fpc-pascal] Bug in enumerators 2.6.4

2014-03-22 Thread Marco van de Voort
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 ref

Re: [fpc-pascal] Bug in enumerators 2.6.4

2014-03-22 Thread Bart
On 3/22/14, Marco van de Voort wrote: > 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? Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lis

Re: [fpc-pascal] Bug in enumerators 2.6.4

2014-03-22 Thread Marco van de Voort
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 com

[fpc-pascal] Bug in enumerators 2.6.4

2014-03-22 Thread Torsten Bonde Christiansen
Hi List. I think i have found a bug related to enumerators, overridden methods and forward declared classes. Please consider the code listed here: http://pastebin.com/8EkVDG5n The problem seem to be that the a descendant enumerator class overriding a virtual method cannot return a class whi

[fpc-pascal] Bug in enumerators 2.6.4

2014-03-21 Thread Torsten Bonde Christiansen
Hi List. I think i have found a bug related to enumerators, overridden methods and forward declared classes. Please consider the code listed here: http://pastebin.com/8EkVDG5n The problem seem to be that the a descendant enumerator class overriding a virtual method cannot return a class whi