Future of memory management in D
Steven Schveighoffer
schveiguy at gmail.com
Wed Nov 17 22:53:45 UTC 2021
On 11/17/21 4:59 PM, Ola Fosheim Grøstad wrote:
> On Wednesday, 17 November 2021 at 21:46:45 UTC, Atila Neves wrote:
>> The GC isn't going anywhere. It's the easiest way to write memory-safe
>> code other than leaking everything.
>
> What is the plan for destructors?
>
> Objects with destructors should not be allocated on the GC-heap. Will
> this become a type error that is caught at compile time?
Nothing wrong with it. It works correctly if you use it correctly.
-Steve
More information about the Digitalmars-d
mailing list