How do I call a context objects destructor or some type of exit() function automatically upon exiting a with {} scope?

Daniel Daniel
Tue Apr 1 16:54:50 UTC 2025


I thought the destructor might automatically be called after with 
(new Context()) {} but it's not.  Is there some sort of 
entry/exit functions like in Python?


More information about the Digitalmars-d-learn mailing list