3 ms·
I wasn’t talking about GC in general, but the GC in Dlang. With the GC turned off in D you can’t use most of the standard library. You can certainly use the st
by cyber_kinetist 4y ago
I wasn’t talking about GC in general, but the GC in Dlang. With the GC turned off in D you can’t use most of the standard library.
You can certainly use the std without relying on GC in languages like Rust, Swift, etc, but the important thing is that you can’t in D. I’m sure it can be technically done, but nobody has actually put the effort to do it.
- Shadonototra 4y agoThe plan is to finish https://dlang.org/phobos/std_experimental_allocator.html https://dlang.org/phobos/std_experimental_allocator.html Once finished, everything in the std will be able to make use of it If you can't wait, you can use this package already with the allocators: https://github.com/dlang-community/containers https://github.com/dlang-community/containers
- cyber_kinetist 4y agoOk, I’ll try it out after the feature stabilizes.