[fpc-devel] On experience of using class helpers
pascaldragon at googlemail.com
Fri Apr 20 14:23:25 CEST 2012
Am 20.04.2012 05:41 schrieb "Alexander Klenin" <klenin at gmail.com>:
> I have used class helpers feature for the first time.
> (See components/tachart/tachartteechart.pas, r36916).
> The good news is that I was able to get it working.
> The bad news is that I have encountered 4 bugs and 1 missing feature
> in about 10 lines of code :)
Why do you need to test so much? Just kidding...
I'm glad that you tested some of the things I didn't test during
> (Also, Lazaus does not seem to support class helpers at all.)
> I have entered some simpler issues in the tracker:
AFAIK Delphi does not support this either, because in the helper's
interface you only have access to members of itself or its parents. If I
remember correctly I have even tested code similar to yours at that time
and it might still be available as a test in the tests directory.
> Unfortunately, I also have more subtle problems (run-time crash)
> which I was yet unable to reproduce on a simple test case.
Would be good if you're able to find reproducable cases.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-devel