Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Location of unhandled-exception handler code?

Posted: 06/24/09 07:21:08

As we know, when an exception goes unhandled, there's some default behavior that occurs (a message being displayed) before the app exits. Where does the code for that "unhandled-exception handling" actually live? It is in tango somewhere, or is it part of the compiler, etc..?

Author Message

Posted: 06/24/09 16:49:10 -- Modified: 06/24/09 16:50:31 by
torhu

It's in lib\compiler\dmd\rt\dmain2.d, there's a C main function defined at the end of that file. That's where the startup and shutdown code is.

So it's in the base (runtime) part of Tango.