#What is the approach to store function pointers of different types in a HashMap?
1 messages · Page 1 of 1 (latest)
one option is *const anyopaque, then ptrCast to the desired function pointer type
in debug/releasesafe, untagged unions are tagged right?
yeah
Great suggestions. Thanks!
would this require an @addrSpaceCast as well? or does zig assume von neumann architecture?
I don't think zig uses a separate address space for functions right now, even on wasm. Maybe that could change in the future
does not require an addrSpaceCast, even on wasm