[fpc-pascal] Traits Proposal
Ryan Joseph
genericptr at gmail.com
Tue Feb 16 19:53:51 CET 2021
> On Feb 16, 2021, at 11:44 AM, Sven Barth <pascaldragon at googlemail.com> wrote:
>
> I wasn't saying anything that contradicts this, only that the original mechanism of the delegation will be available even with the default modifier and this mechanism will in fact be necessary to access them through RTTI.
>
Can you give an example of this syntax? I get errors like Interface "ICircle" cannot be delegated by "TMyShape", it already has method resolutions.
It's a strange syntax compared to anything else we allow in classes and the boiler plate is really adding up now. "procedure Draw" is going to be in 4 lines now!
It would be nicer if they made this into one line so we don't have yet another set of duplicate method signatures, i.e.:
procedure Draw as ICircle.Draw;
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list