[Lazarus] TAChart compilation error (issue 22365)

Sven Barth pascaldragon at googlemail.com
Fri Jul 6 16:04:25 CEST 2012


Am 06.07.2012 10:14 schrieb "Mattias Gaertner" <nc-gaertnma at netcologne.de>:
>
> > 2) Why did this suddently happened? Why do not all other trunk users
complain?
>
> I guess tachart uses a seldom combination of generics,
> implementation uses and operators.
>

The lovely topic "generics" *sigh*

> > 3) Can this be isolated to a smaller testcase and reported as an FPC
bug?
>
> Maybe these hints can help to create a smaller example:
>
> TGenericChartMarks is a generic, which uses in its implementation some
> identifiers defined by the uses section of the implementation section.

Outch! That would explain it... As a general rule: don't use implementation
only stuff inside generics that are made available in the interface
section. The only exception to this might be untyped constants in Delphi
mode, because Delphi allows them as well (there is a bug report from Marco
about this)

> operator +(const A: TPoint; B: TSize): TPoint of unit
> TAGeometry
> and
> TCustomChartSource of unit TACustomSource

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120706/08deca98/attachment-0003.html>


More information about the Lazarus mailing list