If empty statements are deprecated, maybe it would be nicer to use a deprecation error instead of a warning.
Maybe you can also give a look at this pull request: https://github.com/D-Programming-Language/dmd/pull/248 "Add option to show deprecated errors as warnings The new option -di treats deprecation errors as informational warnings, just like -wi show warnings as informational messages without triggering errors. The deprecation option uses the same mechanism as warnings use, so the same counter (globals.warnings) is shared for both regular and deprecation warnings (when -di is in use). Some methods that print there own errors now use the global function error() to print them. There is a particular case in the Lexer where errors are not triggered but counted, in that case the same is done with deprecation warnings, asuming it was intended behaviour." :) [email protected], el 29 de diciembre a las 02:05 me escribiste: > Branch: refs/heads/master > Home: https://github.com/D-Programming-Language/dmd > > Commit: 39d850a65ea5766a7cbd7bbe2fc8ed8e784fcdee > > https://github.com/D-Programming-Language/dmd/commit/39d850a65ea5766a7cbd7bbe2fc8ed8e784fcdee > Author: Walter Bright <[email protected]> > Date: 2011-12-29 (Thu, 29 Dec 2011) > > Changed paths: > M src/parse.c > M src/parse.h > M test/fail_compilation/fail7173.d > M test/runnable/warning1.d > > Log Message: > ----------- > add warning for empty statements -- Leandro Lucarella (AKA luca) http://llucax.com.ar/ ---------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ---------------------------------------------------------------------- La máquina de la moneda, mirá como te queda! -- Sidharta Kiwi _______________________________________________ dmd-internals mailing list [email protected] http://lists.puremagic.com/mailman/listinfo/dmd-internals
