[fpc-devel] [] property overloads

Sven Barth pascaldragon at googlemail.com
Mon Jul 8 17:07:03 CEST 2019


Ryan Joseph <genericptr at gmail.com> schrieb am Mo., 8. Juli 2019, 16:10:

> I just encountered something to consider. Should a property be
> overloadable if the names/args are the same but the return type is
> different? I think if they are not the same access type (i.e. read/write)
> then it could work (not sure about the parsing though) but if both are the
> same access then they should not be allowed.
>

As Pascal does not allow differentiating between result types this indeed
needs to be/stay forbidden.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190708/29c85454/attachment.html>


More information about the fpc-devel mailing list