[dmd-internals] [D-Programming-Language/dmd] 82ebe0: Add deprecation() to print deprecation messages
GitHub
noreply at github.com
Sat Oct 6 13:48:10 PDT 2012
Branch: refs/heads/master
Home: https://github.com/D-Programming-Language/dmd
Commit: 82ebe0357511c60b3526682afd8c2209a0861c48
https://github.com/D-Programming-Language/dmd/commit/82ebe0357511c60b3526682afd8c2209a0861c48
Author: Leandro Lucarella <leandro.lucarella at sociomantic.com>
Date: 2012-10-06 (Sat, 06 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
M src/toobj.c
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 that said that some feature was deprecated when
it has been completely removed were rephrased to state clearly that they
are just plain errors.
Finally, deprecations are reported with Deprecation instead of Error
(and all the error messages are normalized and produced by a single
function).
Commit: a1287bd0b1931917f4e43b5e2d7b997f0d60adf6
https://github.com/D-Programming-Language/dmd/commit/a1287bd0b1931917f4e43b5e2d7b997f0d60adf6
Author: Brad Roberts <braddr at puremagic.com>
Date: 2012-10-06 (Sat, 06 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
M src/toobj.c
Log Message:
-----------
Merge pull request #908 from llucax/deprecation2
Add deprecation() to print deprecation messages
Compare: https://github.com/D-Programming-Language/dmd/compare/67681b916f78...a1287bd0b193
More information about the dmd-internals
mailing list