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
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel