UDAs - Restrict to User Defined Types?
Simen Kjaeraas
simen.kjaras at gmail.com
Thu Nov 8 04:11:02 PST 2012
On 2012-11-08, 11:56, simendsjo wrote:
> On Thursday, 8 November 2012 at 09:05:31 UTC, Jacob Carlborg wrote:
>> I think we should only allow user defined types marked with @attribute,
>> i.e.
>>
>> @attribute struct foo {}
>> @attribute class foo {}
>> @attribute interface foo {}
>> @attribute enum foo {}
>>
>> And so on.
>
> Or
> struct @foo {}
> interface @foo {}
> enum @foo {0
> etc
>
That's actually a very reasonable idea. votes++
--
Simen
More information about the Digitalmars-d
mailing list