Vote UpVote

Multiple Attributes in One Line

The Delphi Geek – Apparently Delphi (at least XE2, didn’t test with others) allows you to write a comma-separated attribute list inside square brackets when annotating types and type members. IOW, following two code fragments are identical. [Name(CNameModule2Sub1)] [Description('Submodule 2.1)] TModule2Sub1Info = class end; [Name(CNameModule2Sub1), Description('Submodule 2.1')] TModule2Sub1Info = class end; I am not able to find if this is a documented behavior. Read more »--- Published under the Creative Commons Attribution 3.0 license
Favorite? Off-Topic? gabr @ 2012-10-22 16:42


Visits: 840
Votes: 3
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Robert Love
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


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