Proposal on improvement to deprecated

Walter Bright newshound2 at digitalmars.com
Mon Oct 3 01:02:48 PDT 2011


On 10/3/2011 12:21 AM, Jacob Carlborg wrote:
> Since we already are using pragma(msg, "scheduled for deprecation") where
> possible, i.e. in templates, why can't we have a proper language construct for
> doing it?
>
> deprecated("message") {}
> deprecated {}
>
> Behave as it currently does, except that the first form will print a message as
> well.

That's a good idea.

> deprecated("message", scheduled) {}
>
> Will behave just as pragma(msg, "") does when a symbol is used that is wrapped
> in the "deprecated" block.

Too many features.



More information about the Digitalmars-d mailing list