[fpc-pascal] Generics and key words

Sven Barth pascaldragon at googlemail.com
Thu Feb 13 08:43:38 CET 2014


Am 13.02.2014 01:28, schrieb silvioprog:
> Hello,
>
> Can I use it:
>
> TBrookAction<TBrookEntity> = class(TBrookObject)
> ...
>
> instead of?:
>
> generic TBrookAction<TBrookEntity> = class(TBrookObject)
> ...
>
> And, can I use it:
>
> TPersonAction = class(TBrookAction<TPerson>)
> ...
>
> instead of?:
>
> TPersonAction = class(specialize TBrookAction<TPerson>)
> ...
>
> This would save typing.
>
> Sorry, I'm beginner in generics.
>
Currently only in mode Delphi.

Regards,
Sven



More information about the fpc-pascal mailing list