Idomatic way to guarantee to run destructor?

Steven Schveighoffer schveiguy at gmail.com
Mon May 4 16:53:35 UTC 2020


On 5/4/20 12:33 PM, Ali Çehreli wrote:
> Now it's news to me that 'new' does not allocate on the heap when 
> 'scope' is used. I'm not sure I'm comfortable with it but that's true. 
> Is this unique? Otherwise, 'new' always allocates on the heap, no?

This feature was in D1 AFAIK.

So it's really old news ;)

-Steve


More information about the Digitalmars-d-learn mailing list