[OT] OT: Null checks.
Kagamin
spam at here.lot
Tue May 6 07:17:08 UTC 2025
On Tuesday, 6 May 2025 at 06:11:29 UTC, Walter Bright wrote:
> What you can do is override the default assert behavior by
> inserting your own assert handler by calling
> `core.exception.assertHandler()`. Be sure to set
> `-checkaction=D`
>
> Then you can have assert() behave however you want.
https://github.com/dlang/dlang.org/pull/2702
> To have a nice message, use checkaction to change it to what is
> desired.
As I understand, these functions are checkaction implementation,
e.g. dmd doesn't call them by default.
More information about the Digitalmars-d
mailing list