5 ms·
Checked Zig. Doesn't have a memory manager. It's "free all at program termination" or manually manage memory like C.
by z92 6y ago
Checked Zig. Doesn't have a memory manager. It's "free all at program termination" or manually manage memory like C.
- anderspitman 6y agoIt does have some nice improvements over C though, such as defer-style deallocation, which can help with many potential bugs.
- socialdemocrat 6y agoIt is much better structured than C. Everything in the standard library that allocated memory takes an allocator as first argument. And you got cleanup with defer statements. Together this makes the memory management story very different from C.