[RFC] Throwing an exception with null pointers
Walter Bright
newshound2 at digitalmars.com
Wed Apr 16 20:07:50 UTC 2025
On 4/16/2025 10:08 AM, Richard (Rikki) Andrew Cattermole wrote:
> We've lately been discussing what to do with Error on Discord, and so far it
> seems like the discussion is going in the direction of it should either do what
> assert does and kill the process with a function pointer in the middle to allow
> configurability, or throw what I've dubbed a framework exception.
You can configure what assert() does via a command line switch.
> Manu wanted something like this recently for identical reasons that me and
Adam do.
Adam and I discussed this extensively at the last Coffee Haus meeting. I haven't
talked with Manu about it.
Anyone can configure assert() to do whatever they want, after all, D is a
systems programming language. But if it does something other than exit the
process, you're on your own.
More information about the Digitalmars-d
mailing list