[fpc-devel] Is this future save? class casting for var-param

Martin lazarus at mfriebe.de
Mon Dec 3 17:39:44 CET 2012


having a
   procedure Foo(var x: TSomeClass);

calling it with

   Foo(TSomeClass(ObjOfBaseClassOfTSomeClass));

It compiles with 2.6.0.

Just want to be sure, it wont stop in future versions.



More information about the fpc-devel mailing list