[Issue 11378] implicit runtime initialization/finalization is broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 30 23:10:33 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11378


Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED


--- Comment #11 from Martin Nowak <code at dawg.eu> 2013-10-30 23:10:27 PDT ---
(In reply to comment #9)
> OK, that's probably workable, would be nice if there was some function to
> correctly exit the thread at any moment, though. Case closed for me.

Exiting a thread is different from exiting the process and even that would
require more for a correct shutdown than C's exit function.

The only mechanism that we have which could correctly unwind a stack and free
all resources is throwing an Exception. What's your use-case for this?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list