[fpc-devel] Class helper: small differences between FPC and Delphi

Marco van de Voort marcov at stack.nl
Sat Mar 26 14:55:57 CET 2011


In our previous episode, Sven Barth said:
> 1. Record helpers in Delphi don't support inheritance. In FPC they do 
> and I believe (see point 2) that record helpers in Delphi could support 
> that as well, but it's been disabled on purpose. I personally think that 
> inheritance for record helpers increases their use, because you can work 
> around the "one helper per type" problem by using inheritance.

I though helpers were mostly static? How does the helped class know what
exact instance is meant?
 
I do see that inheritance can help a bit with helpers that are mostly
static, but intuitively I'd say that is not that useful.




More information about the fpc-devel mailing list