On Wednesday, 23 December 2020 at 15:38:17 UTC, Steven Schveighoffer wrote:

What is happening is that some speculative compilation is checking something via the get function. It might not make a difference, but the error message is useless (who knows where that traits call is triggered).

FYI, v2.095.0 *should* print the instantiation trace, so you can actually track down where it comes from. And the reason DMD now shows the trace is exactly because of this deprecation.

Most likely, it doesn't change anything. Therefore when you turn on the deprecation as an error, it doesn't affect compilation, it just fails in the speculation instead of succeeds. But the ultimate result doesn't actually change anything.

I can't wait until this deprecation has been finalized, because I hate seeing seas of deprecation messages I can't do anything about. 2.097 cannot come soon enough...

FYI, in theory we could use `__traits(isDeprecated)` to silence this. But I haven't looked at the code myself.

  • Beta 2.095.0 Martin Nowak via Digitalmars-d-announce
    • Re: Beta 2.095.0 M.M. via Digitalmars-d-announce
    • Re: Beta 2.095.0 starcanopy via Digitalmars-d-announce
    • Re: Beta 2.095.0 Paolo Invernizzi via Digitalmars-d-announce
      • Re: Beta 2.095.0 Paolo Invernizzi via Digitalmars-d-announce
        • Re: Beta 2.09... Steven Schveighoffer via Digitalmars-d-announce
          • Re: Beta ... Paolo Invernizzi via Digitalmars-d-announce
          • Re: Beta ... Mathias LANG via Digitalmars-d-announce
            • Re: ... Paolo Invernizzi via Digitalmars-d-announce
              • ... Mathias LANG via Digitalmars-d-announce
                • ... Paolo Invernizzi via Digitalmars-d-announce
                • ... Mathias LANG via Digitalmars-d-announce
                • ... Paolo Invernizzi via Digitalmars-d-announce
                • ... Paolo Invernizzi via Digitalmars-d-announce
    • Re: Beta 2.095.0 Walter Bright via Digitalmars-d-announce
    • Re: Beta 2.095.0 Guillaume Piolat via Digitalmars-d-announce
    • Re: Beta 2.095.0 Per Nordlöw via Digitalmars-d-announce

Reply via email to