[fpc-devel] {$Interfaces Corba} and TInterfacedObject
Michael Schnell
mschnell at lumino.de
Thu Nov 29 15:55:37 CET 2007
> An "as" cast from object to
> interface is only allowed (at least in Delphi) if the compiler can
> statically at compiletime determine that the type of the AObject variable
> implements that interface.
Ouups is "as" used differently with interfaces than with objects ? With
Objects "as" does a typecast and additionally at runtime looks if the
variable's type is (a decedent of) the type given. Otherwise an
exception is issued. Am I wrong ?
-Michael
More information about the fpc-devel
mailing list