scope(exit) and Ctrl-C

Adam D. Ruppe destructionator at gmail.com
Sat Dec 2 04:38:29 UTC 2017


On Saturday, 2 December 2017 at 04:28:57 UTC, Wanderer wrote:
> Thanks! This works. But it seems a little bit suspicions that 
> D's type for handler function has `nothrow` `@nogc` and 
> `@system`. I wonder why is that?

Signal handlers are ridiculously limited in what they are allowed 
to do. Really, you should just set a global variable from the 
handler and check it on the outside.


More information about the Digitalmars-d-learn mailing list