[fpc-pascal] Traits Proposal

Ryan Joseph genericptr at gmail.com
Thu Feb 18 23:47:59 CET 2021



> On Feb 18, 2021, at 12:33 PM, Martin Frb via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
>   TMyFoo = class(specialize TTrait<TFooBase>)
>      procedure Foo;
>   end;
> 
> Of course that can get out of hand, if you want to include many traits.

I'm not really understand this at all. You're still using subclassing, which is the thing we're trying to avoid.

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list