[fpc-devel] On experience of using class helpers

Sven Barth 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
development.

> (Also, Lazaus does not seem to support class helpers at all.)
>
> I have entered some simpler issues in the tracker:
>
> http://bugs.freepascal.org/view.php?id=21808
> http://bugs.freepascal.org/view.php?id=21809

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.

> http://bugs.freepascal.org/view.php?id=21810
> http://bugs.freepascal.org/view.php?id=21811
> http://bugs.freepascal.org/view.php?id=21812
>
> 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.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20120420/f3268181/attachment.html>


More information about the fpc-devel mailing list