Mattias Gaertner wrote: > FPC allows to type cast a class-of variable to a class instance. Is > this a bug or a feature? > > var > c: TClass; > begin > TObject(c).ClassName; // crash > end.
With -CR you should get an object check error instead. Jonas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal