4
votes
Vote UpVote

Another Generics / RTTI bug. Attributes are ignored in parametrized types.

Lars Fosdal – The output from the code below, shows that you cannot enumerate attributes for properties of a parametrized type such as TOpenClass. If you close the class as a TDecidedClass = TOpenClass, any attributes declared in TDecidedClass may have enumerable attributes, but the attributes declared for properties in TOpenClass are still not enumerable. Output from the code:Properties for TBaseClassNormalBlinged [Bling]Properties for TBaseParamBlingTFails <- Note the lack of a [Bling] attribute here BlingIntFails <- Note the lack of a [Bling] attribute here Normal Blinged [Bling] Properties for ...
Favorite? Off-Topic? Lars Fosdal @ 2010-11-12 16:41

Statistics

Visits: 537
Votes: 4
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Charles Ardour
Daniele Teti
vcldeveloper
Yogi Yang
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)