[fpc-devel] Initialize/Finalize management operators and Default intrinsic

Michael Van Canneyt michael at freepascal.org
Tue Apr 12 15:33:45 CEST 2016



On Tue, 12 Apr 2016, Maciej Izak wrote:

> 2016-04-12 15:06 GMT+02:00 Michael Van Canneyt <michael at freepascal.org>:
>
>> Attributes do not need Invoke ?
>
>
> Of course they need Invoke. When
> TRttiContext.GetType(TMyClassWithAttributes) is executed, deep inside
> GetType is executed constructor for each attribute by Invoke. IMO mentioned
> branch is far far from "ready to merge".

Quite strange, Joost claimed the exact opposite :-)

>
> Maybe you thinking about attributes just as simple flags/marks without
> constructors (not parameterized attributes), then you are right.

Yes. AFAIK this is what Joost had in mind. Maybe he used some trick to
parametrize, because AFAIK he needed/used it to implement a ORM
architecture; He used the attributes to specify in which DB field a
particular property needed to be stored.

But better ask Joost directly.

Michael.



More information about the fpc-devel mailing list