Am 05.09.2013 06:21 schrieb "Xiangrong Fang" <xrf...@gmail.com>:
>
> I found the problem myself.  You have to add "uses Variants" to eliminate
the problem.  So now my questions are:
>
> 1) why the Variants unit is required? What does it do?

The Variants unit implements the conversion operators. Normally the unit is
automatically included if you use variants, but in case of parameters and
function results this does not work currently... (already reported)

>
> 2) is there any performance penalty using Variant than TVarRec?

Variants are said to be slower than TVarRec, but they also are more
flexible on the other hand.

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to