Skip to content

Should ref use custom offset of the referred type? #158

Open
@OleksandrKvl

Description

@OleksandrKvl

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:

  1. Type has custom offset, ref doesn't.
  2. Both of them have custom offsets.
  3. Type doesn't have custom offset, ref has it. In this case it feels natural that ref's offset should be used.
  4. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions