There should be an #opaque directive tag for structs #2723
Beefster09
started this conversation in
Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is mainly for interfacing with foreign code.
An opaque struct has the following semantics:
size_of
oralign_of
should be a compile-time errorcore:reflect
intrinsics.type_is_struct
checks and similarintrinsics.type_has_fields
and similar (not just a false result)distinct rawptr
Beta Was this translation helpful? Give feedback.
All reactions