Exception/Error division in D

deadalnix deadalnix at gmail.com
Wed May 30 01:30:43 PDT 2012


Le 24/05/2012 20:39, Steven Schveighoffer a écrit :
> I'd argue this is unrecoverable. Access Violation results from
> corruption, and the damage has already been done. Even a null pointer
> access can be the cause of previous corruption. There is no "recovery"
> from memory corruption. There is no way to plan for it.
>
> Now, if you want to handle it specifically for your program, that should
> be doable, at your own risk. But there's no way throwing an Exception is
> a valid result.
>

https://github.com/D-Programming-Language/druntime/pull/187

I think this is a mandatory patch due to nullable types by default. 
Arguably, nullable by default is the problem.


More information about the Digitalmars-d mailing list