[fpc-pascal] Generics and key words
silvioprog
silvioprog at gmail.com
Thu Feb 13 01:28:42 CET 2014
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.
--
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/20140212/f7042524/attachment.html>
More information about the fpc-pascal
mailing list