[OT] OT: Null checks.
Walter Bright
newshound2 at digitalmars.com
Tue May 6 23:28:07 UTC 2025
On 5/5/2025 8:31 PM, Timon Gehr wrote:
> I am perfectly content with it throwing an assert error and unwinding the stack.
> This is just not what druntime will do in the default build that ships with the
> compiler.
If you add the -checkaction=D after the -release switch, then the assert will
throw an Error. (Putting it after means it overrides the previous setting made
by the -release)
(Actually, it throws a `staticError!AssertError(msg, file, line)` which is
derived from `Error`.)
(I don't know why it has to go through all these layers and layers of templates.)
More information about the Digitalmars-d
mailing list