User Defined Attributes

Jacob Carlborg doob at me.com
Tue Nov 6 07:31:56 PST 2012


On 2012-11-06 16:15, Walter Bright wrote:

>> enum test = "test";
>>
>> [test] void foo () {}
>
> or:
>
>     enum EEE;
>     [EEE] void foo() { }
>

First, I didn't know you could have an empty enum. Second, that was my 
point. I don't like the need for a dummy/empty enum, or the use of a 
string literal.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-announce mailing list