[fpc-devel] Allow record helper inheritance in Delphi mode
hnb.code at gmail.com
Tue Aug 29 22:30:16 CEST 2017
2017-08-29 22:09 GMT+02:00 Ondrej Pokorny <lazarus at kluug.net>:
> I, on the contrary, read:
> On 29.08.2017 18:54, Sven Barth via fpc-devel wrote:
> > (btw: a type helper for a primitive type can inherit from a record
> helper of the same type, internally they're all the same)
but in this example you have different kind of inheritance (type helper
from record helper). "internally" is the key word ;)
> Btw. record helpers support inheritance in all modes but Delphi. It
> doesn't make sense to disallow it for record helpers but allow it for type
> helpers... Too overcomplicated without any plus value :/
what if Delphi will decide to introduce some new exotic
syntax/extension/feature for "record helper"? With "type helper" and
modeswitch typehelpers usage of inheritance still will be possible in
Delphi mode and is safer :).
You have also right, so inheritance in Delphi mode for record helpers
should be "undefined" but you don't like this, so I have no idea how you
want to convince Sven to "record helpers" inheritance in Delphi mode :P.
Good luck ;)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-devel