<p>Am 29.08.2017 12:44 schrieb "Ondrej Pokorny" <<a href="mailto:lazarus@kluug.net">lazarus@kluug.net</a>>:<br>
><br>
> On 29.08.2017 11:48, Sven Barth via fpc-devel wrote:<br>
>><br>
>> The idea is okay as well, but I'd name it RecordHelperInheritance, cause if we'd allow "type helper" in mode Delphi (as Maciej asks) then those would support inheritance by default as they aren't Delphi compatible as a whole anyway.<br>
><br>
><br>
> Actually, IMO {$modeswitch typehelpers} should be supported in delphi mode as well - just like {$modeswitch advancedrecords} is. Some code to test:<br>
></p>
<p>It is supported and in fact also enabled by default, just not in the manner you expect: it controls whether primitive types can be used with record helpers in Delphi modes.</p>
<p>><br>
> Furthermore the record helper Delphi syntax is supported in ObjFPC mode - even with inheritance [!]:</p>
<p>Of course it is, because the record (and class) helpers were implemented first and I saw no reason to differentiate between class and record helpers regarding inheritance. I merely differentiated between mode Delphi and the others, because Delphi does not allow it.</p>
<p>Regards,<br>
Sven</p>