Related to this TObjectList/TComponentList discussion,
can somebody explain the difference between:

(TObjectList[i] as TSomething)
and
TSomething(TObjectList[i])

Both codes access the same object; one is using the 'as' operator the 
second one is using a direct typecast. But what are the differences?
Is one of them faster than the other? Should one of them be used in some 
cases more than the other?

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to