Negation of attributes (DIP 79)

Artur Skawina via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 2 17:40:55 PDT 2015


On 06/03/15 01:41, ketmar via Digitalmars-d wrote:
> On Tue, 02 Jun 2015 18:49:09 +0200, Artur Skawina via Digitalmars-d wrote:
> 
>> On 06/02/15 14:21, ketmar via Digitalmars-d wrote:
>>> this opens a can of worms. should this be accepted too:
>>>   enum doItFinal = false;
>>>   final(doItFinal)
>>> ?
>>>
>>> or even
>>>   final(someFunnyTemplate!(with_, args, andOtherTemplate!"too"))
>>> ?

>> Of course.
> 
> this is bad. it smells. it adds almost nothing in terms of uniformity. 
> and i'm sure that Hackerpilot will be happy to know that he now needs a 
> full-blown D interpreter to determine if some method is virtual or not. ;-)

An interpreter is required anyway.

And that is, btw, why any simple dfix-like tool can not work with a
language like D, where the *norm* is programs that write programs.

artur


More information about the Digitalmars-d mailing list