User Defined Attributes
Jonas Drewsen
nospam4321 at hotmail.com
Tue Nov 6 01:19:00 PST 2012
On Tuesday, 6 November 2012 at 09:08:25 UTC, Walter Bright wrote:
> On 11/6/2012 1:06 AM, Jonas Drewsen wrote:
>> Wow! This is an early christmas gift.
>>
>> Just to be sure. Is the following also possible:
>>
>> ["Serializable"]
>> class Foo
>> {
>> int bar;
>> }
>>
>> This will attach the UDA to the ClassDeclaration.
>>
>> The examples you've shown only attach UDAs to variable
>> declarations.
>>
>> /Jonas
>>
>
> Yes, you can attach them to other symbols, including user
> defined types.
Great. Can't wait to play around with this. I think project
Orange could really take advantage of this.
/Jonas
More information about the Digitalmars-d-announce
mailing list