[fpc-pascal] function param and TVarRec

Michael Van Canneyt michael at freepascal.org
Tue Sep 24 10:02:50 CEST 2013



On Tue, 24 Sep 2013, Xiangrong Fang wrote:

> Thanks,  this works, sort of.  But does not meet my needs, I will pass in either an int value or an object, but Variant is not compatible with TObject.

You could make it so using a custom variant manager or operator overloading, but this requires additional work.

Michael.


More information about the fpc-pascal mailing list