Sign in Join

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

Mailing lists / fpc-devel / 2019-07

Property attributes support

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Sven Barth
to Ondrej Pokorny

Ondrej Pokorny schrieb am Sa., 20. Juli 2019, 12:04:

Show quoted text 10 lines
Hello! I saw that Sven committed property attributes support in trunk. Thank you for this! Is there any documentation how to use them? (Syntax, reading information during runtime etc?) I only found very old information: https://wiki.freepascal.org/Property_attributes http://free-pascal-general.1045716.n5.nabble.com/Property-attributes-td5718442.html

Here: https://wiki.freepascal.org/Custom_Attributes

The old Wiki page should propably be updated to reflect the current state of affairs...

You can also take a look at Delphi tutorials. The only difference is that we provide access through the TypInfo unit as well while Delphi officially only supports the Rtti unit.

Regards,
Sven

Reply by email

Ondrej Pokorny
to Sven Barth
Sven Barth wrote

Thank you!

The old Wiki page should propably be updated to reflect the current state of affairs...

I deleted the old information (nearly everything) and put a link to the new Wiki page there.

You can also take a look at Delphi tutorials. The only difference is that we provide access through the TypInfo unit as well while Delphi officially only supports the Rtti unit.

I am familiar with Delphi attributes - I didn't expect the FPC attributes to be Delphi-compatible. Thanks again!

Ondrej

Reply by email

Sven Barth
to Ondrej Pokorny
Ondrej Pokorny wrote 6 lines
> The old Wiki page should propably be updated to reflect the current > state of affairs... I deleted the old information (nearly everything) and put a link to the new Wiki page there.

Probably for the best ;)

Show quoted text 6 lines
> You can also take a look at Delphi tutorials. The only difference is > that we provide access through the TypInfo unit as well while Delphi > officially only supports the Rtti unit. I am familiar with Delphi attributes - I didn't expect the FPC attributes to be Delphi-compatible. Thanks again!

As if we'd implement a big feature like that in a incompatible way... The proposal in the Wiki was before Delphi added attributes and Joost implemented them in a Delphi-compatible way from the get go.

Regards,
Sven

Reply by email