On Friday, 22 May 2020 at 17:54:26 UTC, Atila Neves wrote:
On Friday, 22 May 2020 at 17:41:38 UTC, Steven Schveighoffer

And so, you are free to pepper your @safe code with dangling pointers. Sure, you can claim that the C++ library didn't "corrupt your code", which is the case for ALL libraries if you use them properly. You did it, you created a dangling pointer, not the library.

Right. And the point I was trying to make wasn't "look at what I did, it's cool". No, what I did was dumb. So dumb it took you no time at all to point out one of my mistakes. My point is that the result of making declarations implicity @system instead of @safe would make people just slap @safe on them without really thinking about it to get their code to compile. Like I did.

So force people to slap @trusted instead, via compiler complains, not @safe, and reviewers will catch the laziness: why this is worst that what you picture?
            • ... Paolo Invernizzi via Digitalmars-d-announce
            • ... Steven Schveighoffer via Digitalmars-d-announce
        • Re: DIP10... Paolo Invernizzi via Digitalmars-d-announce
        • Re: DIP10... Steven Schveighoffer via Digitalmars-d-announce
          • Re: D... Atila Neves via Digitalmars-d-announce
            • ... ag0aep6g via Digitalmars-d-announce
            • ... Atila Neves via Digitalmars-d-announce
            • ... Dukc via Digitalmars-d-announce
            • ... Steven Schveighoffer via Digitalmars-d-announce
            • ... Joseph Rushton Wakeling via Digitalmars-d-announce
            • ... Paolo Invernizzi via Digitalmars-d-announce
            • ... Walter Bright via Digitalmars-d-announce
            • ... Steven Schveighoffer via Digitalmars-d-announce
        • Re: DIP10... ag0aep6g via Digitalmars-d-announce
          • Re: D... Atila Neves via Digitalmars-d-announce
            • ... ag0aep6g via Digitalmars-d-announce
            • ... Paul Backus via Digitalmars-d-announce
            • ... Mathias LANG via Digitalmars-d-announce
            • ... Dominikus Dittes Scherkl via Digitalmars-d-announce
  • Re: DIP1028 - Rational... jmh530 via Digitalmars-d-announce

Reply via email to