Destructor order
    eles via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Wed Oct 22 10:40:28 PDT 2014
    
    
  
On Wednesday, 22 October 2014 at 17:13:35 UTC, Ola Fosheim 
Grøstad wrote:
> On Wednesday, 22 October 2014 at 16:55:41 UTC, Regan Heath 
> wrote:
> But Scoped!A is on the stack?
Exactly. From Ali's book:
"scoped() wraps the class object inside a struct and the 
destructor of that struct object destroys the class object when 
itself goes out of scope. "
Destroy! ;) http://ddili.org/ders/d.en/destroy.html
    
    
More information about the Digitalmars-d-learn
mailing list