[fpc-pascal] Using TInterfaceList and casting interfaces
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,
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal