Avoiding GC
Guillaume Piolat via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Oct 27 00:52:09 PDT 2016
On Wednesday, 26 October 2016 at 08:18:07 UTC, hardreset wrote:
> Is there a page somewhere on how to program D without using the
> GC?
The information is scattered.
> How do I allocate / free structs / classes on the heap manually?
Classes =>
https://github.com/AuburnSounds/dplug/blob/master/core/dplug/core/nogc.d#L122
> New would be GCed memeory wouldnt it?
Yes.
> Delete is being depreciated?
I don't think you ever want delete when there is .destroy
More information about the Digitalmars-d-learn
mailing list