DIP64: Attribute Cleanup

Nick Treleaven via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 17 09:46:08 PDT 2016


On Sunday, 17 April 2016 at 12:05:03 UTC, Anonymous5 wrote:
> If attributes are well split into sub categories, we could 
> justify that a sub category will have @ and another not (e.g 
> protection attributes: not @, functions attributes: @).
>
> The list of attributes that's not classified is:
>
> + static
>  extern
> + abstract
> + final
> + override
> + synchronized
> + auto
>  scope
> + const
> + immutable
>  inout
> + shared
>  __gshared
> + nothrow
> + pure
>  ref

Only override, nothrow and pure apply only to functions. Like the 
existing @attributes, all function-only attributes should use 
@attribute syntax. We only have to change 3, and the existing 
keywords can still be supported indefinitely IMO.




More information about the Digitalmars-d mailing list