<p>Am 29.08.2017 08:47 schrieb "Michael Van Canneyt" <<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>>:<br>
><br>
><br>
><br>
> On Tue, 29 Aug 2017, Sven Barth via fpc-devel wrote:<br>
><br>
>> Am 28.08.2017 23:11 schrieb "Ondrej Pokorny" <<a href="mailto:lazarus@kluug.net">lazarus@kluug.net</a>>:<br>
>>><br>
>>><br>
>>> Hello!<br>
>>><br>
>>> I find it unnecessary to disable record helper inheritance in Delphi<br>
>><br>
>> mode. Due to this  artificial limitation I have to change unit mode from<br>
>> Delphi to ObjFPC.<br>
>>><br>
>>><br>
>>> Reasons:<br>
>>> 1.) It's a limitation of a feature that FPC already has.<br>
>>> 2.) I write FPC-only code in Delphi mode. I don't care about Delphi<br>
>><br>
>> compatibilty.<br>
>>><br>
>>> 3.) There are already switches/features allowed in Delphi mode that are<br>
>><br>
>> not compatible with Delphi either. (E.g.  {$COPERATORS ON}, {$MACRO ON},<br>
>> maybe more).<br>
>>><br>
>>><br>
>>> Please either allow record helper inheritance in Delphi mode by default<br>
>><br>
>> or at least make a switch to allow it. I can try to come up with a patch if<br>
>> you suggest what you prefer.<br>
>>><br>
>>><br>
>>> I find it ridiculous to change the mode of a whole unit just to enable a<br>
>><br>
>> feature that FPC already has and Delphi strangely lacks.<br>
>>><br>
>>><br>
>><br>
>> This will not be enabled by default. If anything a modeswitch will be added<br>
>> so that users are aware that what they'll write will not be compatible with<br>
>> Delphi.<br>
>> However since I'm busy with other FPC stuff: patches welcome. Suggested<br>
>> name is "NonDelphiExtensions".<br>
><br>
><br>
> Why not simply allow $RECORDHELPERS or so ?</p>
<p>What strangeness is this? We have the modeswitch concept for a reason, namely that we don't need to introduce a new directive for everything.</p>
<p>Regards,<br>
Sven</p>