Function's local variables allocated on the heap.

realhet real_het at hotmail.com
Mon Sep 1 05:32:08 UTC 2025


On Sunday, 31 August 2025 at 22:11:26 UTC, Ali Çehreli wrote:
> On 8/31/25 2:36 PM, realhet wrote:
> ...long-term lifetime...

Very cool feature.
Even a function body can be used to make a composition of 
multiple objects. It acts like a class constructor, but with 
cleaner, simpler syntax, and automatically deallocated by GC.


More information about the Digitalmars-d-learn mailing list