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

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Mon Dec 3 17:52:31 CET 2012



On Mon, 3 Dec 2012, Martin wrote:

> 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.

It should not stop.

Michael.



More information about the fpc-devel mailing list