[Lazarus] Example requested for TList and Sort using data type of Object (or record).

Sven Barth pascaldragon at googlemail.com
Thu May 12 10:22:39 CEST 2011


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




More information about the Lazarus mailing list