On Thursday, 2 November 2023 at 09:13:55 UTC, Iain Buclaw wrote:
On Thursday, 2 November 2023 at 07:49:32 UTC, Imperatorn wrote:
Why is it named nothrow if what it's really doing is not adding the unwinders? A nothrow switch could imply it's doing something in relationship to nothrow, which it doesn't (unless it's secretly enforcing nothrow in the codebase).

`-nothrow` is equivalent to putting `nothrow:` at the top of every compiled module.

That kind of goes against what it says in the changelog:

Putting nothrow: at the top of the module doesn't influence the status for member functions in a class or struct, the nothrow: will have to be repeated for each class/struct.

And it also mentions:

The switch does not affect semantic analysis

But surely it has effect on semantics? I assume scope statements are disallowed if -nothrow is set and would lead to compilation errors?
  • First Beta 2.... Iain Buclaw via Digitalmars-d-announce
    • Re: Firs... Andrej Mitrovic via Digitalmars-d-announce
      • Re: ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-announce
      • Re: ... Iain Buclaw via Digitalmars-d-announce
    • Re: Firs... Imperatorn via Digitalmars-d-announce
      • Re: ... Iain Buclaw via Digitalmars-d-announce
        • ... Imperatorn via Digitalmars-d-announce
        • ... Andrej Mitrovic via Digitalmars-d-announce
          • ... Iain Buclaw via Digitalmars-d-announce
            • ... Andrej Mitrovic via Digitalmars-d-announce
    • Re: Firs... Andrea Fontana via Digitalmars-d-announce
    • Re: Firs... Steven Schveighoffer via Digitalmars-d-announce
      • Re: ... Adam Wilson via Digitalmars-d-announce
    • Re: Firs... Andrey Zherikov via Digitalmars-d-announce
      • Re: ... Imperatorn via Digitalmars-d-announce

Reply via email to