RFC: DIP draft for "Compiler-defined Attribute Consistency"

rikki cattermole rikki at cattermole.co.nz
Fri Jul 16 04:41:56 UTC 2021

On 16/07/2021 7:26 AM, Rune Morling wrote:
> Is e.g. `@+myuda`, `@-myuda` or `@_myuda` legal?

_ may be in an identifier, so that one is legal.

> As long as you can decorate with a consistent extra single character, 
> wouldn't it be entirely possible (and perhaps even advantageous?) to use 
> a commonly accepted best practice/idiom in order to distinguish 
> user-defined attributes from compiler-defined attributes without needing 
> to change the grammar?


The moment we start changing rules around what an identifier means, 
that's symbol lookup. We really don't want to add more special cases there.

More information about the Digitalmars-d mailing list