Should `ref` use custom offset of the referred type?
OleksandrKvl opened this issue · 0 comments
OleksandrKvl commented
Documentation says that offset attribute of type/enum/set/composite is used only if it's "a member of a composite type". Is usage of such type via ref considered as "a member of a composite type"? There are 4 cases:
- Type has custom offset,
refdoesn't. - Both of them have custom offsets.
- Type doesn't have custom offset,
refhas it. In this case it feels natural thatref's offset should be used. - Neither of them have custom offset. No problem here.
I guess that ref simply should not care about custom offset of the referred type, can someone confirm or correct me please?