User Defined Attributes

Walter Bright newshound2 at digitalmars.com
Tue Nov 6 10:16:10 PST 2012


On 11/6/2012 10:01 AM, Jacob Carlborg wrote:
> What's the issue with the name scoping system? That the user defined attributes
> will conflict with already existing attributes? You'll have the same problem
> with keywords. Perhaps that's why attributes where created, to have a new
> namespace for keywords. Even if they might not be the same internally for the
> compiler it's the same for the user/developer.

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.





More information about the Digitalmars-d-announce mailing list