[fpc-devel] Allow record helper inheritance in Delphi mode
hnb.code at gmail.com
Tue Aug 29 20:20:03 CEST 2017
2017-08-29 18:54 GMT+02:00 Sven Barth via fpc-devel <
fpc-devel at lists.freepascal.org>:
> Maybe it would indeed make more sense to adjust the meaning of the
> typehelpers modeswitch in mode Delphi... Namely that it enabled the "type
> helper" syntax including the inheritance. But the record helpers are left
> as is... (btw: a type helper for a primitive type can inherit from a record
> helper of the same type, internally they're all the same)
> This way we won't need a new modeswitch...
+1 for single modeswitch. In my case both would be used all the time.
IMO inheritance for record helpers in Delphi mode has no really meaning and
may stay as undefined behavior (finally we have many non Delphi behaviors
available in Delphi mode), even more - it is nice addition :).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-devel