Re: [fpc-pascal] Typecast class-of to class

2017-02-18 Thread Marco van de Voort
In our previous episode, Mattias Gaertner said: > > 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. Feature (allowed because equal in size), used in e.g. Registerxxx functions

[fpc-pascal] Typecast class-of to class

2017-02-18 Thread Mattias Gaertner
Hi, 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. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] Castle Game Engine 6.0 released

2017-02-18 Thread Michalis Kamburelis
Hi, We're proud to release Castle Game Engine 6.0, an open-source 3D and 2D game engine for Object Pascal. This release is a culmination of more than a year of intensive engine development. The main feature is that almost every part of the engine got significant improvement, and we have more