3 ms·
If you don't pass an allocator param in Zig, then the function basically can't allocate.
by wmedrano 3mo ago
If you don't pass an allocator param in Zig, then the function basically can't allocate.
- 3836293648 3mo agoNo, that's just a convention. Any function can just create a new allocator, or import the global one, or use malloc from libc. Zig does nothing to enforce this convention.
- scritty-dev 3mo agoisn't that more of a convention than an actual guarantee?