any-pointer
any-pointer copied to clipboard
A type erasure library for Zig that is meant to be eventually upstreamed to std
Quoting @SpexGuy: > casting pointer->int->pointer has a side effect that the optimizer cannot remove: it discards provenance information. You should use *c_void or *const c_void instead as the erased type....
Quoting @SpexGuy: > This might not be the goal, but my version had separate types for SinglePointer, ManyPointer, Slice, etc. That allowed me to avoid serializing the pointer part of...
This is actually a Zig issue: https://github.com/ziglang/zig/issues/6706
Change `null_pointer` to reflect the actual address of the `null` address