Skip to content

Generate typeid from "the entire struct" instead of just type-name. #139

Open
@wc-duck

Description

@wc-duck

Today the typeid of a type is only generated from the types name and nothing else (see https://github.com/wc-duck/datalibrary/blob/master/src/dl_typelib_read_txt.cpp#L1125)

This will lead to problems when, in the future, type upgrades/conversions need to be supported as 2 types would be considered the same even if their members is not the same!

Typeid should be generated from name + member-names + member-types to generate an unique typeid even if the name is the same.

Question: are 2 types the same if name mismatch but the actual struct is equal?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions