scope(exit) and Ctrl-C

Jacob Carlborg doob at me.com
Sat Dec 2 09:42:14 UTC 2017


On 2017-12-02 02:26, Adam D. Ruppe wrote:

> But this is intentional - there is no generic, reliable, cross-platform 
> way of handling it natively. So you need to know the system and code it 
> yourself. Not super hard but does take a bit of effort in your code.

Since the "scope" block is not executed, does that also mean that the 
runtime is not shutdown? If that's the case, does it make sense to have 
a generic signal handler in druntime that aborts the application and 
shuts down the druntime in a graceful way?

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list