2 ms·
> D can however be used without a GC if needed Honest question: is it the case in practice though? Last time I checked D, you could disable the GC in theory,
by Hasknewbie 8y ago
> D can however be used without a GC if needed
Honest question: is it the case in practice though? Last time I checked D, you could disable the GC in theory, but in practice many things would fail to work, most importantly their standard library. As this been fixed since then?
- atilaneves 8y agoYes, it's the case in practice: I've written a lot of @nogc code. Some parts of the standard library require the GC, but not all of it, and the parts that I usually use are fine (std.algorithm, std.range, ...). Since allocators landed, it's been a lot easier, and I've written a library that does C++-style smart pointers for D: https://github.com/atilaneves/automem https://github.com/atilaneves/automem