Proposal on improvement to deprecated

Jacob Carlborg doob at me.com
Sun Oct 2 01:48:53 PDT 2011


On 2011-10-02 07:24, Jonathan M Davis wrote:
> There has been a fair bit of discussion about improving deprecated in this
> pull request: https://github.com/D-Programming-Language/dmd/pull/345

I have not read the discussion on github but an idea would be to have 
several levels of deprecation. Instead of "soft" and "hard" there could 
be numbers. Say level 1 could be used for scheduled for deprecation and 
depending what flags will be used when compiling it could print some 
kind of message. Level 2 would be soft deprecate and level 3 would be 
hard deprecate. There could also be more levels in between these levels 
if we want.

The idea is that the user can use a compiler flag to get messages about 
symbols that are scheduled for deprecation.

Don't know if this is too complicated.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list