[Lazarus] Python4Delphi/Lazarus: VarPyth: VarDataClear.. not yet supported?

Florian Klaempfl florian at freepascal.org
Thu Jun 11 22:29:56 CEST 2009


Robert schrieb:
> Michael Van Canneyt wrote:
>>
>>
>> On Sat, 30 May 2009, Robert wrote:
>>>
>>> i := pp.f();  // EVariantTypeCastError (i:Integer or LongInt)
>>
>> This needs investigation.
>>
> 
> Found, that the origin of this casting problem is obviously, that
> TPythonVariantType.CastTo is not called by FPC, like it is in Delphi.
> In variants.pp there are some ´FindCustomVariantType ...
> Handler.CastTo´s , but it does not work as it should?
> 
> When I switch VarPyth into Atom-Mode by the following {$IFDEF FPC}, this
> problem can be worked around for now. But some things are limited then....

Please submit an FPC bug report showing the problem in a program as
small as possible.




More information about the Lazarus mailing list