[Issue 17424] Add optional errors/static analysis

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed May 24 17:23:49 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=17424

--- Comment #5 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
I would point out that optional errors would actually be extremely bad in D
because of compile-time introspection. What code worked and compiled would
change based on the compiler flags, effectively meaning that the language
definition changed via the compiler flags. We already have problems with that
thanks to -w (we really should just be made to do the same as -wi and then
phase one of them out). To get the diagnostics that you're looking for without
creating problems with compile-time introspection, there would need to be some
sort of option that caused compilation to fail (as occurs with an error) when
they occurred but which would be ignored for the purposes of compile-time
introspection.

--


More information about the Digitalmars-d-bugs mailing list