Bug 14623 – Checking for in-flight exceptions at runtime

Status
NEW
Severity
enhancement
Priority
P4
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-05-27T23:54:36Z
Last change time
2024-12-07T13:35:20Z
Assigned to
No Owner
Creator
Mark Isaacson
Moved to GitHub: dmd#17301 →

Comments

Comment #0 by markisaa — 2015-05-27T23:54:36Z
We should have a function that allows you to see if there are exceptions currently in flight. Brought this up at DConf and Andrei suggested that it should be a runtime function and that we might already have a lot of the machinery to make this happen. He also referenced what C++ is working on for this: http://en.cppreference.com/w/cpp/error/uncaught_exception An example: struct Foo { ~this() { if (we_are_unwinding_due_to_an_exception) { logSomeStuff(); } } }
Comment #1 by robert.schadek — 2024-12-07T13:35:20Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17301 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB