[Lazarus] Codetools and specialize

Leonardo M. Ramé l.rame at griensu.com
Mon Nov 16 13:54:20 CET 2015



El 16/11/15 a las 09:18, Mattias Gaertner escribió:
> On Mon, 16 Nov 2015 08:16:18 -0300
> Leonardo M. Ramé <l.rame at griensu.com> wrote:
>
>> Hi, I'm trying to implement a method of an specialized class, but when I
>> type ctrl+space the IDE shows "Error: Identifier not found: specialize".
>> But I can compile this project without problems.
>>
>> The definition of my class is this:
>>
>> TActListStudies = class(specialize TBaseGAction<TDummy>)
>> public
>>     procedure Post; override;
>> end;
>
> Codetools do not yet support anonymous specialization.
> See bug report:
> http://bugs.freepascal.org/view.php?id=27895
>
> Can you use below instead?
>
> TBaseGActionDummy = specialize TBaseGAction<TDummy>;
>
> TActListStudies = class(TBaseGActionDummy)
> public
>     procedure Post; override;
> end;
>

Hmm, when I change that, the same error is raised, this time in the
definition of TBaseGAction:

   generic TBaseGAction<T> = class(specialize TBrookGAction<T>)

...




More information about the Lazarus mailing list