Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2013-09

RTTI Attributes

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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.

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

Reply by email

Sven Barth
to Anthony Walter
Anthony Walter wrote 5 lines
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/

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

AFAIK in that branch they are currently only supported for classes.

Regards,
Sven

Reply by email