Negation of attributes (DIP 79)

via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 2 07:29:06 PDT 2015


On Tuesday, 2 June 2015 at 12:13:47 UTC, ref2401 wrote:
> On Tuesday, 2 June 2015 at 10:29:35 UTC, Daniel Kozak wrote:
>> I am working on dip which will try to addressed negation of 
>> attributes issue.
>> http://wiki.dlang.org/DIP79
>
> You propose to add extra difficulty to the language and the 
> only reason is "If you need add few methods which are virtual 
> or variables, you are forced to put them before final:. This is 
> too limiting.".
> I think it's a bad idea.

This is by far not the only reason. It is just as well useful for 
all other attributes: const, pure, @safe/@system, @nogc, and 
maybe UDAs.

It's long been recognized that a mechanism to switch off a 
scope-wide attribute would be useful.


More information about the Digitalmars-d mailing list