deprecate deprecated?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Nov 6 18:55:37 PST 2012


On 11/7/12 1:56 AM, Walter Bright wrote:
> I know there's been some long term unhappiness about the deprecated
> attribute - it's all-or-nothing approach, poor messages, etc. Each
> change in it changes the language and the compiler.
>
> Perhaps it could be done with a user defined attribute instead?
>
> Anyone want to take on the challenge?

I don't think that's possible. One would need a mechanism to hook into 
all calls to a function (adorned with a specific attribute) and emit the 
message during compilation. That is missing.

Andrei


More information about the Digitalmars-d mailing list