Exception/Error division in D

deadalnix deadalnix at gmail.com
Fri Jun 1 05:01:08 PDT 2012


Le 31/05/2012 21:47, Walter Bright a écrit :
> On 5/31/2012 12:40 AM, Jens Mueller wrote:
>> 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.
>
> There's no way to guarantee a graceful shutdown.
>
> No way.
>
> If you must have such, then the way to do it is to divide your
> application into separate processes that communicate via interprocess
> communication, then when one component fails the rest of your app can
> restart it or do what's necessary, as the rest is not in an invalid state.
>

They're is no way to ensure that an IP packet will go throw the 
internet. Let just shutdown that silly thing that internet is right now.


More information about the Digitalmars-d mailing list