Skip to content

Any concerns with using variable-size type structures? #188

Closed
@pfalcon

Description

@pfalcon

As we progressing with functionality, there come up cases where you'd want to store more data/methods for particular classes. It makes no sense to try to stuff everything into mp_obj_type_t. Then, natural way is to "subclass" mp_obj_type_t, which in C translates to embedding mp_obj_type_t into another structure and adding members to the latter.

Any concerns with such approach?

Metadata

Metadata

Assignees

No one assigned

    Labels

    rfcRequest for Comment

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions