[fpc-pascal] corba interfaces - is/as not working properly
Graeme Geldenhuys
mailinglists at geldenhuys.co.uk
Thu Sep 29 10:49:03 CEST 2016
On 2016-09-29 06:42, Martin Schreiber wrote:
> abcintf:= iabc(abc);
> "
> which has the best performace.
But you must still remember to check if abcintf has been successfully
assigned.
[personal opinion]
Hence I still prefer the Supports(..) call as it can be used directly in
a boolean expression, the name itself makes it very clear what you are
asking from the code, and it just reads better.
Regards,
Graeme
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
My public PGP key: http://tinyurl.com/graeme-pgp
More information about the fpc-pascal
mailing list