Leak-detection of references to scoped class instances
Per Nordlöw
per.nordlow at gmail.com
Mon Nov 25 12:08:54 UTC 2019
On Monday, 25 November 2019 at 08:22:02 UTC, Jacob Carlborg wrote:
> On Sunday, 24 November 2019 at 21:49:19 UTC, Per Nordlöw wrote:
>> I guess we need a builtin language qualifier for scoped
>> classes for that to work, right?
>
> We have that:
>
> scope a = new Object;
>
> —
> /Jacob Carlborg
Ahh, nice.
Does/Will DMD/GDC/LDC (in release builds) make the allocation of
`Object` happen on the stack?
More information about the Digitalmars-d-learn
mailing list