[fpc-pascal] Using TInterfaceList and casting interfaces
Sven Barth
pascaldragon at googlemail.com
Sun Apr 7 20:24:07 CEST 2019
Benito van der Zander <benito at benibela.de> schrieb am So., 7. Apr. 2019,
15:34:
> Writing (list.get(0) as ISomeInterface), is very slow and not possible,
> when the interface has no GUID.
>
This is indeed what is supposed to be used with TInterfaceList.
Or perhaps it is better to use gvector rather than TInterfaceList?
>
If you only store a specific interface type then using one of the generic
containers specialized to that type would indeed be best.
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190407/77782cb1/attachment.html>
More information about the fpc-pascal
mailing list