User Defined Attributes

Daniel Murphy yebblies at nospamgmail.com
Tue Nov 6 18:10:49 PST 2012


"Jacob Carlborg" <doob at me.com> wrote in message 
news:k7bp22$1rsc$3 at digitalmars.com...
> On 2012-11-06 19:24, David Nadlinger wrote:
>
>> You are right, UDAs must definitely leverage D's module system for
>> encapsulation/disambiguation. Use of string literals (which are
>> intrinsically »global«) as annotations needs to be explicitly 
>> discouraged.
>
> Then why allow it in the first place?
>
> -- 
> /Jacob Carlborg

My thoughts exactly.  It reminds me of the horror of C++ exceptions.  I 
think it would be reasonable to require every annotation is a struct or 
class. 




More information about the Digitalmars-d-announce mailing list