Am 12.05.2011 09:44, schrieb Michael Schnell:
With components, maybe "as" is even more decent. it will generate even
more overhead, but do a type check for safety.

If you get pointers passed in (which is the case in TList's Sort handler) then you need to do a unsafe typecast at least to TObject anyway, so you're able to use "as" at all.

Regards,
Sven

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to