Zig0.16.0中还有GPA吗 #353
Answered
by
ZeekoZhu
MPCBexplorer
asked this question in
新手提问
|
谢谢你关注这个讨论!我在zig0.16.0中试图使用gpa,但被编译器告知不存在此类allocator,于是我去查阅官方文档,如图 |
Answered by
ZeekoZhu
Aug 4, 2026
Replies: 1 comment 3 replies
|
https://github.com/ziglang/zig/blob/0.14.0/lib/std/heap.zig#L19-L25 这个东西被改名为 DebugAllocator 了,目前官方的推荐可以看这里 https://ziglang.org/documentation/0.16.0/#Choosing-an-Allocator |
3 replies
Answer selected by
MPCBexplorer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


https://github.com/ziglang/zig/blob/0.14.0/lib/std/heap.zig#L19-L25
这个东西被改名为 DebugAllocator 了,目前官方的推荐可以看这里 https://ziglang.org/documentation/0.16.0/#Choosing-an-Allocator