> On Nov 12, 2016, at 3:29 PM, Sven Barth <[email protected]> wrote:
> Avoid this casting by storing the interface reference. Will make your life
> much easier and your code more maintainable.
Yes storing the interface works and seems to be the best solution for now. I
did learn that generics could clean up the problem further but I need to adapt
more code to make that work easily and removing the constant Support calls is
good enough to put my mind at ease. :)
Regards,
Ryan Joseph
_______________________________________________
fpc-pascal maillist - [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal