Why the @ in @safe? & UDAs

Dicebot public at dicebot.lv
Thu Nov 7 14:23:13 PST 2013


On Thursday, 7 November 2013 at 20:58:51 UTC, Jacob Carlborg 
wrote:
> That only works if you always use fully qualified names for 
> your UDA's:
> ...

Btw, what I have meant originally is that if built-in attributes 
where provided by some runtime module similar to object.d 
(instead of being part of grammar), one could use specialized 
imports at module top-level to prioritize them over built-in ones 
and make transition trivial:
```
import myudamodule : property;

// ...

@property // explicit symbol import has higher priority over 
normal one, no name clash
void foo() {}
```


More information about the Digitalmars-d mailing list