#Hi, how do I create a pointer to an unknown type that I can cast to some known type at runtime?

1 messages · Page 1 of 1 (latest)

left cargo
#

In essence something like void* in C.

hollow mica
#

*anyopaque

#

@ptrCast and @alignCast to cast back and forth if it doesn't just coerce with @as

green acorn
#

literally called c_void before