the main usecaes for this would be c "flexible arrays" and stuff like pascal strings.
currently the only way to do this is to put a zero-sized type at the end of a struct
Search for extern
types / DynSized
/ Unsized
/ pointee metadata / custom DSTs more generally.
2 Likes
ThinBox
is also relevant
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.