Why the @ in @safe? & UDAs

Jacob Carlborg doob at me.com
Thu Nov 7 23:32:10 PST 2013


On 2013-11-07 23:23, Dicebot wrote:

> 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() {}
> ```

Oh, you mean like that. I guess that could work.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list