[fpc-pascal] Generics and key words
silvioprog
silvioprog at gmail.com
Thu Feb 13 17:33:47 CET 2014
2014-02-13 5:43 GMT-02:00 Sven Barth <pascaldragon at googlemail.com>:
> 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
Thank you Sven!
--
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140213/c65a0d1f/attachment.html>
More information about the fpc-pascal
mailing list