[fpc-pascal] IInterface type value and the "as" keyword

Honza befelemepeseveze at gmail.com
Sun Dec 11 20:46:14 CET 2011


2011/12/11 Marco van de Voort <marcov at stack.nl>:
> In our previous episode, Honza said:
>> Now I'm trying to make that code work with
>> current stable (AFAICS that's 2.4.4)
>
> Correct, but it is relatively short before the 2.6.0 release, with a first
> RC1 already available. Since 2.6.0 might arrive this year still (or in the
> first week of the next), I suggest your focus your attention there, and
> forget about 2.4.4.

Good suggestion, done exactly that.

>> I suppose something has changed with the FPC interfaces and/or using
>> the "as" keyword in the above construct. Of course I searched e.g. the
>> "changes" wiki pages 2.4.0->2.4.2->2.4.4(and even ->2.6.0), but I
>> failed to find anything related, the same result for the mailing lists
>> and general googling attempts. And of course I tried every single
>> change to the code I could imagine may work.
>
> I assume it is bugfixed in 2.5+, which never made it back to the 2.4 series.

Yes, after switching to 2.6.0 the problem disappeared, thank you very much!

Thanks to your help (and some hours of hacking), I'm now here:
----
$ ./helib_test -a -p --format=plain
...
Number of run tests: 701
Number of errors:    0
Number of failures:  0

Heap dump by heaptrc unit
5844426 memory blocks allocated : 252487390/286727568
5844426 memory blocks freed     : 252487390/286727568
0 unfreed memory blocks : 0
True heap size : 294912
True free heap : 294912
$
----

;-)

Thanks again!

Best regards,

-bflm

PS: helib/heContnrs release-0.4, RC1 for FPC 2.6.0 (tested with svn
rev 19814), tar download available here:
http://code.google.com/p/fprb/downloads/detail?name=release-0.4.tar.gz
Feedback/issue reports/volunteers to test on other
platforms/architectures/... welcome. (I can easily run tests only on
64bit Ubuntu 10.10.)



More information about the fpc-pascal mailing list