Walter Bright wrote:
> On 5/30/2012 2:32 AM, Don Clugston wrote:
> >In fact, generally, the point of an AssertError is to prevent the program 
> >from
> >entering an invalid state.
> 
> It's already in an invalid state when the assert fails, by definition.
> 
> It is not recoverable. The only option is a more or less graceful shutdown.

How do I do a graceful shutdown if finally and scope is not guaranteed
to be executed? Assuming onAssertError, etc. is of no use because I need
to perform different shutdowns due to having different cases or if I
defined my own Error, let's say for some device.

Jens

Reply via email to