RTTI Attributes

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

RTTI Attributes

Anthony Walter-3
I did some google searching which turned up very little so I decided to ask my question here.

What is the current status of custom RTTI attributes in fpc trunk? Fot those who don't understand what I am asking about, here is an example.

type
  [AttrWithConstructor('Added text value!')]
  TRecord = record
    FField: Integer;
  end;


_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: RTTI Attributes

Sven Barth-2
Am 24.09.2013 16:13, schrieb Anthony Walter:
> I did some google searching which turned up very little so I decided
> to ask my question here.
>
> What is the current status of custom RTTI attributes in fpc trunk? Fot
> those who don't understand what I am asking about, here is an example.
They are not implemented in trunk. Joost is working on them in a branch
though:
http://svn.freepascal.org/cgi-bin/viewvc.cgi/branches/joost/classattributes/
>
> type
>   [AttrWithConstructor('Added text value!')]
>   TRecord = record
>     FField: Integer;
>   end;
>
AFAIK in that branch they are currently only supported for classes.

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal