[fpc-devel] Allow record helper inheritance in Delphi mode

Maciej Izak 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 :).

-- 
Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20170829/53c52022/attachment.html>


More information about the fpc-devel mailing list