You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do not know if var global_allocator: *mem.Allocator = undefined; should work, but even if it shouldn't; I would expect a compile error instead of segfault
The text was updated successfully, but these errors were encountered:
uname -ra:
Darwin Kernel Version root:xnu-3789.73.27~1/RELEASE_X86_64 x86_64
zig version:
0.4.0+057a5d48
I wanted to know how allocators work so I created the following program;
zig fmt . && zig build-exe main.zig && ./main
I do not know if
var global_allocator: *mem.Allocator = undefined;
should work, but even if it shouldn't; I would expect a compile error instead of segfaultThe text was updated successfully, but these errors were encountered: