4 ms·
By convention, all Zig libraries have functions that take an allocator as input from the user. Your application can use libgc[1] and pass the allocator to any l
by TUSF 3y ago
By convention, all Zig libraries have functions that take an allocator as input from the user. Your application can use libgc[1] and pass the allocator to any library function you use, and not worry about deallocating afterwards.
[0]: https://github.com/linusg/zig-libgc https://github.com/linusg/zig-libgc