[fpc-pascal] SetPropValue: value as string does not work for Chars and Booleans
silvioprog
silvioprog at gmail.com
Thu Jun 11 07:26:39 CEST 2015
Hello,
Trying to set the value 'a' to a property Char and a 'True' to a Boolean
property, I got some errors (logs in attached) in function
'TypInfo.SetPropValue'. But I did the same test in Delphi XE 7 and also in
Delphi 7 (after some changes in my demo, shure), and it worked fine. So I
decided to test other property types looking for more errors.
I attached a small project simulating a test-case, testing the function
'TypInfo.SetPropValue' with commum primitive types in FPC and Delphi.
Please see the LOG_*.TXT files, it has the comparition between FPC (trunk)
and Delphi (XE7), both tests done in 32 and 64 CPUs.
Is this bug or a normal behaviour of FPC RTTI? If you confirm it as but, I
can try to send a patch to fix that.
Thank you!
--
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20150611/748d1f96/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtti_comp.zip
Type: application/zip
Size: 6934 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20150611/748d1f96/attachment.zip>
More information about the fpc-pascal
mailing list