So, we allow assert() in nothrow functions, the argument is that
assert is non-recoverable, so it's distinct from user exceptions.

I have this in my 'nothrow @nogc' function:
  assert(false, "Message " ~ details);

It complains "Error: cannot use operator ~ in @nogc function"

I think it should be allowed to invoke the GC for formatting error
messages inside of assert statements, just the same as assert() is
allowed inside of nothrow functions.

Thoughts?

Reply via email to