On Tue, 11 Nov 2014 22:31:17 +0000
Maxime Chevalier-Boisvert via Digitalmars-d-learn
<digitalmars-d-learn@puremagic.com> wrote:

> What I want to know is: what 
> guarantees can I expect from destructor behavior?
destructors *may* be called eventually. or not. in any order. but never
twice.

think about object destructors as "finalizers". no calling order
guarantees, nor even guarantees that something will be called at all.

so if your VM becomes garbage, and registered objects are anchored only
by VM (i.e. there are no more references to that objects), destructors
can be called in any order.

Attachment: signature.asc
Description: PGP signature

Reply via email to