[OT] OT: Null checks.

Kagamin spam at here.lot
Wed May 7 08:51:01 UTC 2025


On Tuesday, 6 May 2025 at 23:51:05 UTC, Walter Bright wrote:
>> Well, I just don't want any hard crashes in production. 
>> Druntime throws other kinds of errors besides assert errors, 
>> by the way.
>
> Replace the `-release` switch in the build of druntime with 
> `-release -checkaction=D`.
>
> I do understand you need to debug remotely, and presumably your 
> program is not critical to your customer. Doing a custom 
> rebuild of druntime with `-release -checkaction=D` is entirely 
> appropriate for your situation. But I'm hesitant about making 
> it the default build.

It's a quantitative problem. Druntime is stress tested by all 
projects using it, bugs surviving that are unlikely, bugs in user 
code are more likely, e.g. druntime doesn't use debug build 
version of malloc.


More information about the Digitalmars-d mailing list