[fpc-pascal] Traits Proposal

Ryan Joseph genericptr at gmail.com
Thu Feb 11 05:10:14 CET 2021



> On Feb 10, 2021, at 9:05 PM, Martin Frb via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
> Maybe Something like  (aliasing / no need to copy implementation)
> TDesignerList = trait(TEmployeList)
>   function  FindDesigerByUnallocateWorkTime: TEmploye; aliases FindByUnallocateWorkTime;  // no body /just a name replacement
>   // and the others
> end;

I see. I used "override from" in the wiki. From my experience I don't think the compiler team will allow this since it adds news syntax and complexity so I suggest we focus on manual boilerplate functions for now. I will of course defer to them on these matters.

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list