[dmd-internals] [D-Programming-Language/dmd] 234330: Add deprecation() to print deprecation messages

GitHub noreply at github.com
Sun Oct 21 22:41:22 PDT 2012


  Branch: refs/heads/dmd-1.x
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 23433021e9cda546f0ae811ab0fb46bde2a50a83
      https://github.com/D-Programming-Language/dmd/commit/23433021e9cda546f0ae811ab0fb46bde2a50a83
  Author: Leandro Lucarella <leandro.lucarella at sociomantic.com>
  Date:   2012-06-19 (Tue, 19 Jun 2012)

  Changed paths:
    M src/dsymbol.c
    M src/dsymbol.h
    M src/expression.c
    M src/expression.h
    M src/iasm.c
    M src/lexer.c
    M src/lexer.h
    M src/mars.c
    M src/mars.h
    M src/mtype.c
    M src/parse.c
    M src/statement.c
    M src/statement.h

  Log Message:
  -----------
  Add deprecation() to print deprecation messages

The deprecation() function works similar to the error() or warning()
functions but only prints messages if global.params.useDeprecated is
false. If it is, it uses the error() function to actually print the
messages and halt the program.

This patch also tries to make the messages consistent with the
behaviour. Some messages said that some feature was deprecated when it
has been completely removed in reality and should be plain errors or
vice versa.

Finally, deprecations are reported with Deprecation instead of Error
(and all the error messages are normalized and produced by a single
function).


  Commit: c2422b9d36dcfce8e9a2fd0faa73577e5a08d471
      https://github.com/D-Programming-Language/dmd/commit/c2422b9d36dcfce8e9a2fd0faa73577e5a08d471
  Author: Walter Bright <walter at walterbright.com>
  Date:   2012-10-21 (Sun, 21 Oct 2012)

  Changed paths:
    M src/dsymbol.c
    M src/dsymbol.h
    M src/expression.c
    M src/expression.h
    M src/iasm.c
    M src/lexer.c
    M src/lexer.h
    M src/mars.c
    M src/mars.h
    M src/mtype.c
    M src/parse.c
    M src/statement.c
    M src/statement.h

  Log Message:
  -----------
  merge D1 pull #909


Compare: https://github.com/D-Programming-Language/dmd/compare/cfa035532dad...c2422b9d36dc


More information about the dmd-internals mailing list