User Defined Attributes

David Nadlinger see at klickverbot.at
Tue Nov 6 10:24:11 PST 2012


On Tuesday, 6 November 2012 at 18:16:15 UTC, Walter Bright wrote:
> Then all UDAs must exist in some shared global name space, and 
> scoping and encapsulation becomes like it is in C, i.e. 
> every_body_writes_their_names_like_this and hopes it doesn't 
> conflict with someone else's names.

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.

David


More information about the Digitalmars-d-announce mailing list