On Tue, 12 Apr 2016, Maciej Izak wrote:

2016-04-12 15:06 GMT+02:00 Michael Van Canneyt <mich...@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.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to